fix system muti-define when enable RT_USING_MODULE

This commit is contained in:
guozhanxin 2022-12-07 09:32:58 +08:00 committed by Man, Jianting (Meco)
parent 2cc9bd7936
commit eb66f2c964
1 changed files with 0 additions and 15 deletions

View File

@ -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)