nshlib/: Fix missing semicolon; include string.h.
This commit is contained in:
parent
5840625201
commit
e832e73b99
@ -42,6 +42,7 @@
|
|||||||
#include <sys/boardctl.h>
|
#include <sys/boardctl.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include "nsh.h"
|
#include "nsh.h"
|
||||||
@ -143,7 +144,7 @@ int cmd_shutdown(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
if (strcmp(argv[1], "--reboot") != 0)
|
if (strcmp(argv[1], "--reboot") != 0)
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtarginvalid, argv[0]);
|
nsh_output(vtbl, g_fmtarginvalid, argv[0]);
|
||||||
return ERROR
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Invoke the BOARDIOC_RESET board control to reset the board. If
|
/* Invoke the BOARDIOC_RESET board control to reset the board. If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user