Explorar el Código

[update] function must have parameter

chenchaoqun hace 4 años
padre
commit
a1ac12c1f1
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      bsp/efm32/copy_this_file_shell.c
  2. 1 1
      components/finsh/shell.c

+ 1 - 1
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};

+ 1 - 1
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 "