未验证 提交 fa599be0 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3767 from ErnestChen1/function_parameter

[update] function must have parameter
...@@ -88,7 +88,7 @@ int isprint(unsigned char ch) ...@@ -88,7 +88,7 @@ int isprint(unsigned char ch)
#if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR) #if defined(RT_USING_DFS) && defined(DFS_USING_WORKDIR)
#include <dfs_posix.h> #include <dfs_posix.h>
const char* finsh_get_prompt() const char* finsh_get_prompt(void)
{ {
#define _PROMPT "finsh " #define _PROMPT "finsh "
static char finsh_prompt[RT_CONSOLEBUF_SIZE + 1] = {_PROMPT}; static char finsh_prompt[RT_CONSOLEBUF_SIZE + 1] = {_PROMPT};
......
...@@ -101,7 +101,7 @@ int finsh_set_prompt(const char * prompt) ...@@ -101,7 +101,7 @@ int finsh_set_prompt(const char * prompt)
#include <dfs_posix.h> #include <dfs_posix.h>
#endif /* RT_USING_DFS */ #endif /* RT_USING_DFS */
const char *finsh_get_prompt() const char *finsh_get_prompt(void)
{ {
#define _MSH_PROMPT "msh " #define _MSH_PROMPT "msh "
#define _PROMPT "finsh " #define _PROMPT "finsh "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册