diff --git a/components/finsh/cmd.c b/components/finsh/cmd.c index 92b7d704e49fc61d7fc6e6be701ae2ff08a5349f..0b4c313b7ce950d4e59b512f34ad5c956807f2a8 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 52c860100ca54aaac6b05651add98a93a1fe861e..3bf6b23b4805bfb921df0958a61d1e7705d91ecd 100644 --- a/components/libdl/dlopen.c +++ b/components/libdl/dlopen.c @@ -14,6 +14,7 @@ #include #include +#include #define MODULE_ROOT_DIR "/module/lib"