diff options
Diffstat (limited to 'nuttx/examples/nsh/nsh_netcmds.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_netcmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/examples/nsh/nsh_netcmds.c b/nuttx/examples/nsh/nsh_netcmds.c index ee21ae154..df4197c87 100644 --- a/nuttx/examples/nsh/nsh_netcmds.c +++ b/nuttx/examples/nsh/nsh_netcmds.c @@ -221,10 +221,11 @@ int ifconfig_callback(FAR struct uip_driver_s *dev, void *arg) * Name: cmd_ifconfig ****************************************************************************/ -void cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) +int cmd_ifconfig(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { netdev_foreach(ifconfig_callback, vtbl); uip_statistics(vtbl); + return OK; } #endif /* CONFIG_NET && CONFIG_NSOCKET_DESCRIPTORS */ |