diff options
| author | [email protected] <[email protected]> | 2011-06-08 16:33:12 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2011-06-08 16:33:12 +0000 |
| commit | 4e5e1f8f55d707eaa7f97ce2654f28fee9397adf (patch) | |
| tree | f73e6a1fda933cc2532ef32c9472819749f9b6dc /components | |
| parent | 06dd644012dbdf6a64fe4b5948573de5baccb89c (diff) | |
remove some compiler warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1467 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/finsh/cmd.c | 4 | ||||
| -rw-r--r-- | components/libdl/dlopen.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 92b7d704e4..0b4c313b7c 100644 --- a/components/finsh/cmd.c +++ b/components/finsh/cmd.c @@ -387,6 +387,9 @@ int list_module(void) rt_kprintf("%-16s ", module->parent.name); rt_kprintf("%-04d \n", module->nref); } + + return 0; + } FINSH_FUNCTION_EXPORT(list_module, list module in system) @@ -395,7 +398,6 @@ int list_mod_detail(const char* name) { int i; struct rt_module *module; - struct rt_list_node *list, *node; /* find module */ if((module = rt_module_find(name)) != RT_NULL) diff --git a/components/libdl/dlopen.c b/components/libdl/dlopen.c index 52c860100c..3bf6b23b48 100644 --- a/components/libdl/dlopen.c +++ b/components/libdl/dlopen.c @@ -14,6 +14,7 @@ #include <rtthread.h>
#include <rtm.h>
+#include <string.h>
#define MODULE_ROOT_DIR "/module/lib"
|
