Browse Source

fix a compile warning
Warning[w6]: Type conflict for external/entry "list", in module symbol against external/entry in module cmd; function return types are different; different basic types


git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1683 bbd45198-f89e-11dd-88c7-29a3b14d5316

dzzxzz 14 years ago
parent
commit
c41b9c2950
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/finsh/cmd.c

+ 1 - 1
components/finsh/cmd.c

@@ -490,7 +490,7 @@ int list_mod_detail(const char* name)
 FINSH_FUNCTION_EXPORT(list_mod_detail, list module objects in system)
 FINSH_FUNCTION_EXPORT(list_mod_detail, list module objects in system)
 #endif
 #endif
 
 
-int list()
+long list(void)
 {
 {
 	struct finsh_syscall_item* syscall_item;
 	struct finsh_syscall_item* syscall_item;
 	struct finsh_sysvar_item*  sysvar_item;
 	struct finsh_sysvar_item*  sysvar_item;