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
@ -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 */
|
/* 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)
|
if (sockfd < 0)
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
|
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 */
|
/* 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)
|
if (sockfd < 0)
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
|
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "socket", NSH_ERRNO);
|
||||||
|
Loading…
Reference in New Issue
Block a user