From 8bd3e6f6dc2a6b73d53558f33d684bada0654c06 Mon Sep 17 00:00:00 2001 From: bernard Date: Wed, 2 Apr 2014 14:05:15 +0800 Subject: [Kernel] Change command line to const parameter and add system() function. --- src/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/module.c') diff --git a/src/module.c b/src/module.c index 428d42e961..0603159b91 100644 --- a/src/module.c +++ b/src/module.c @@ -920,7 +920,7 @@ static void module_main_entry(void* parameter) * * @return the module object */ -rt_module_t rt_module_do_main(const char *name, void *module_ptr, char* cmd_line, int line_size) +rt_module_t rt_module_do_main(const char *name, void *module_ptr, const char* cmd_line, int line_size) { rt_module_t module; @@ -1125,7 +1125,7 @@ rt_module_t rt_module_open(const char *path) * * @return the module object */ -rt_module_t rt_module_exec_cmd(const char *path, char* cmd_line, int size) +rt_module_t rt_module_exec_cmd(const char *path, const char* cmd_line, int size) { struct stat s; int fd, length; -- cgit v1.3.1