diff options
| author | Bernard Xiong <[email protected]> | 2020-07-27 17:57:28 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-27 17:57:28 +0800 |
| commit | fa599be08cb79b16d9bdb1456e195ac134b0f34f (patch) | |
| tree | 1f2e56343aca8a15e211f95865e0f526561d8333 | |
| parent | 7f84ac875e1010f324958559a7d3b62df553e48f (diff) | |
| parent | a1ac12c1f1fbcd0a56cf1737ca9d63946b923078 (diff) | |
Merge pull request #3767 from ErnestChen1/function_parameter
[update] function must have parameter
| -rw-r--r-- | bsp/efm32/copy_this_file_shell.c | 2 | ||||
| -rw-r--r-- | components/finsh/shell.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/efm32/copy_this_file_shell.c b/bsp/efm32/copy_this_file_shell.c index 24c2644e1e..45ce3cb45a 100644 --- a/bsp/efm32/copy_this_file_shell.c +++ b/bsp/efm32/copy_this_file_shell.c @@ -88,7 +88,7 @@ int isprint(unsigned char ch) #if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR) #include <dfs_posix.h> -const char* finsh_get_prompt() +const char* finsh_get_prompt(void) { #define _PROMPT "finsh " static char finsh_prompt[RT_CONSOLEBUF_SIZE + 1] = {_PROMPT}; diff --git a/components/finsh/shell.c b/components/finsh/shell.c index 852d3e7ac7..61f0b9562e 100644 --- a/components/finsh/shell.c +++ b/components/finsh/shell.c @@ -101,7 +101,7 @@ int finsh_set_prompt(const char * prompt) #include <dfs_posix.h> #endif /* RT_USING_DFS */ -const char *finsh_get_prompt() +const char *finsh_get_prompt(void) { #define _MSH_PROMPT "msh " #define _PROMPT "finsh " |
