fix: 去掉没有使用的入参consoleid。

【背景】
https://gitee.com/openharmony/kernel_liteos_m/blob/master/components/shell/src/base/show.c
L49 consoleid 函数中没有使用,应该改为VOID。

【修改方案】
1. 将consoleid改为VOID。

【影响】
对现有的产品编译不会有影响。

re #I43CVE

Change-Id: Ieac29d16ec06c4fa45652c7106b63f6dd8397ebf
Signed-off-by: pef <cyd1997@126.com>
This commit is contained in:
pef 2021-10-12 12:43:56 +00:00
parent badf1e9557
commit a62795304d
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
extern CHAR *OsShellGetWorkingDirtectory(VOID); extern CHAR *OsShellGetWorkingDirtectory(VOID);
extern UINT32 OsShellInit(INT32 consoleId); extern UINT32 OsShellInit(VOID);
extern INT32 OsShellDeinit(INT32 consoleId); extern INT32 OsShellDeinit(INT32 consoleId);
static inline void SetErrno(int errcode) static inline void SetErrno(int errcode)

View File

@ -213,7 +213,7 @@ LITE_OS_SEC_TEXT_MINOR VOID ExecCmdline(const CHAR *cmdline)
return; return;
} }
OsShellInit(0); (VOID)OsShellInit();
/* strip out unnecessary characters */ /* strip out unnecessary characters */
ret = PreHandleCmdline(cmdline, &output, &outputlen); ret = PreHandleCmdline(cmdline, &output, &outputlen);

View File

@ -46,7 +46,7 @@ STATIC UINT32 OsShellCmdInit(VOID)
return OsShellSysCmdRegister(); return OsShellSysCmdRegister();
} }
UINT32 OsShellInit(INT32 consoleId) UINT32 OsShellInit(VOID)
{ {
if (g_shellSourceFlag == FALSE) { if (g_shellSourceFlag == FALSE) {
UINT32 ret = OsShellCmdInit(); UINT32 ret = OsShellCmdInit();