提交 61ddce07 编写于 作者: S Simon Glass 提交者: Wolfgang Denk

sandbox: Use the new run_command()

Now that run_command() handles both parsers, clean up sandbox to use it.
This fixes a build error.
Signed-off-by: NSimon Glass <sjg@chromium.org>
Acked-by: NMike Frysinger <vapier@gentoo.org>
上级 9e02a6b8
......@@ -90,13 +90,7 @@ int sandbox_main_loop_init(void)
/* Execute command if required */
if (state->cmd) {
/* TODO: redo this when cmd tidy-up series lands */
#ifdef CONFIG_SYS_HUSH_PARSER
run_command(state->cmd, 0);
#else
parse_string_outer(state->cmd, FLAG_PARSE_SEMICOLON |
FLAG_EXIT_FROM_LOOP);
#endif
os_exit(state->exit_type);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册