summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-27 12:23:29 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-07 07:41:26 +0100
commit93578fb2333bba3d1c2d0fa41de11ba4f92f9aed (patch)
tree0ded5f8c7eff310f441fe2cf1c939bbe3a86291b /commands
parent3ea30d9ce892a66d5161acd8afb24b755e3f2045 (diff)
downloadbarebox-93578fb2333bba3d1c2d0fa41de11ba4f92f9aed.tar.gz
barebox-93578fb2333bba3d1c2d0fa41de11ba4f92f9aed.tar.xz
run_command: remove unused flag parameter
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/boot.c2
-rw-r--r--commands/exec.c2
-rw-r--r--commands/login.c2
-rw-r--r--commands/time.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/commands/boot.c b/commands/boot.c
index c4b49a9035..fea7b54332 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -47,7 +47,7 @@ static int boot_script(char *path)
globalvar_set_match("linux.bootargs.dyn.", "");
globalvar_set_match("bootm.", "");
- ret = run_command(path, 0);
+ ret = run_command(path);
if (ret) {
printf("Running %s failed\n", path);
goto out;
diff --git a/commands/exec.c b/commands/exec.c
index bd7d54afd2..8d12b30ec9 100644
--- a/commands/exec.c
+++ b/commands/exec.c
@@ -39,7 +39,7 @@ static int do_exec(int argc, char *argv[])
if (!script)
return 1;
- if (run_command (script, 0) == -1)
+ if (run_command(script) == -1)
goto out;
free(script);
}
diff --git a/commands/login.c b/commands/login.c
index b616bf15fc..d9297fa370 100644
--- a/commands/login.c
+++ b/commands/login.c
@@ -68,7 +68,7 @@ static int do_login(int argc, char *argv[])
if (passwd_len < 0) {
console_allow_input(false);
- run_command(timeout_cmd, 0);
+ run_command(timeout_cmd);
}
if (check_passwd(passwd, passwd_len))
diff --git a/commands/time.c b/commands/time.c
index 987c25ef73..2cc3292d7b 100644
--- a/commands/time.c
+++ b/commands/time.c
@@ -27,7 +27,7 @@ static int do_time(int argc, char *argv[])
start = get_time_ns();
- run_command(buf, 0);
+ run_command(buf);
end = get_time_ns();