Merge pull request #3767 from ErnestChen1/function_parameter

[update] function must have parameter
This commit is contained in:
Bernard Xiong 2020-07-27 17:57:28 +08:00 committed by GitHub
commit fa599be08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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};

View File

@ -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 "