diff options
| author | guozhanxin <[email protected]> | 2022-12-07 09:32:58 +0800 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2022-12-06 20:53:20 -0500 |
| commit | eb66f2c9643af8fd1dce91568556074f47615892 (patch) | |
| tree | 755bc6229fbd3f430498c4cb8d150b9234cf588c | |
| parent | 2cc9bd793603a5fb4d08d61d46cee79697dc1638 (diff) | |
fix system muti-define when enable RT_USING_MODULE
| -rw-r--r-- | components/finsh/msh.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/finsh/msh.c b/components/finsh/msh.c index 884d408ec3..59f824f02a 100644 --- a/components/finsh/msh.c +++ b/components/finsh/msh.c @@ -261,21 +261,6 @@ int msh_exec_module(const char *cmd_line, int size) rt_free(pg_name); return ret; } - -int system(const char *command) -{ - int ret = -RT_ENOMEM; - char *cmd = rt_strdup(command); - - if (cmd) - { - ret = msh_exec(cmd, rt_strlen(cmd)); - rt_free(cmd); - } - - return ret; -} -RTM_EXPORT(system); #endif static int _msh_exec_cmd(char *cmd, rt_size_t length, int *retp) |
