diff options
| author | chenchaoqun <[email protected]> | 2020-07-24 15:19:12 +0800 |
|---|---|---|
| committer | chenchaoqun <[email protected]> | 2020-07-24 15:20:12 +0800 |
| commit | a1ac12c1f1fbcd0a56cf1737ca9d63946b923078 (patch) | |
| tree | 8753f92e60850facc6a59d57d01bd88c0c1bfb7f | |
| parent | e6b72153b440ae6eb9cf98bdc44c29903042373f (diff) | |
[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 " |
