diff --git a/components/shell/include/show.h b/components/shell/include/show.h index 7b05b8e99acdc2bc9faf29abbee62826e64e8db3..6bb81f1b19d874ae9f84037075ed1e77f80378d4 100644 --- a/components/shell/include/show.h +++ b/components/shell/include/show.h @@ -43,7 +43,7 @@ extern "C" { #endif /* __cplusplus */ extern CHAR *OsShellGetWorkingDirtectory(VOID); -extern UINT32 OsShellInit(INT32 consoleId); +extern UINT32 OsShellInit(VOID); extern INT32 OsShellDeinit(INT32 consoleId); static inline void SetErrno(int errcode) diff --git a/components/shell/src/base/shmsg.c b/components/shell/src/base/shmsg.c index 2e3e7ca687c3be6d26cef21d27bcf25f997c6ef8..b53a6ac2d861f3b68a06abbb1569fcd68aad692a 100755 --- a/components/shell/src/base/shmsg.c +++ b/components/shell/src/base/shmsg.c @@ -213,7 +213,7 @@ LITE_OS_SEC_TEXT_MINOR VOID ExecCmdline(const CHAR *cmdline) return; } - OsShellInit(0); + (VOID)OsShellInit(); /* strip out unnecessary characters */ ret = PreHandleCmdline(cmdline, &output, &outputlen); diff --git a/components/shell/src/base/show.c b/components/shell/src/base/show.c index b52bba1365a656adcc53eef06679a047a57aeba3..c4952fab1f185a45eeb10f1ff2ba4773d443fe36 100755 --- a/components/shell/src/base/show.c +++ b/components/shell/src/base/show.c @@ -46,7 +46,7 @@ STATIC UINT32 OsShellCmdInit(VOID) return OsShellSysCmdRegister(); } -UINT32 OsShellInit(INT32 consoleId) +UINT32 OsShellInit(VOID) { if (g_shellSourceFlag == FALSE) { UINT32 ret = OsShellCmdInit();