mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-12 07:55:42 +00:00
Merged in hardlulz/modem-3.0-nuttx-apps/fix-compile-nsh_routecmds (pull request #118)
Fixed the compilation of nsh_routecmds.c, broken after commit 6b9d23c6aa
Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
parent
35da4e7fd4
commit
dea8d93f64
1 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ int cmd_addroute(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
|
||||
/* We need to have a socket (any socket) in order to perform the ioctl */
|
||||
|
||||
sockfd = socket(family, NETLIB_SOCK_IOCTL, 0);
|
||||
sockfd = socket(family, NETLIB_SOCK_TYPE, 0);
|
||||
if (sockfd < 0)
|
||||
{
|
||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
|
||||
|
|
@ -474,7 +474,7 @@ int cmd_delroute(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||
|
||||
/* We need to have a socket (any socket) in order to perform the ioctl */
|
||||
|
||||
sockfd = socket(family, NETLIB_SOCK_IOCTL, 0);
|
||||
sockfd = socket(family, NETLIB_SOCK_TYPE, 0);
|
||||
if (sockfd < 0)
|
||||
{
|
||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue