summaryrefslogtreecommitdiffstats
path: root/common/parser.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-10-01 09:54:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2007-10-01 09:54:10 +0200
commitd27e123c531d64047a6a4a14b87c27887b501d5e (patch)
tree04e045589405ac4e2c88fdc6c00a92e3925e557c /common/parser.c
parent16a49fbbd71736f1768b91c68f2ada40429d5b1d (diff)
downloadbarebox-d27e123c531d64047a6a4a14b87c27887b501d5e.tar.gz
make simple parser compile again
Diffstat (limited to 'common/parser.c')
-rw-r--r--common/parser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/parser.c b/common/parser.c
index d5308d9..1734e30 100644
--- a/common/parser.c
+++ b/common/parser.c
@@ -282,7 +282,7 @@ int run_command (const char *cmd, int flag)
#endif /* CFG_CMD_BOOTD */
/* OK - call function to do the command */
- if ((cmdtp->cmd) (cmdtp, flag, argc, argv) != 0)
+ if ((cmdtp->cmd) (cmdtp, argc, argv) != 0)
rc = -1;
}
@@ -303,8 +303,6 @@ int run_shell(void)
flag = 0; /* assume no special flags for now */
if (len > 0)
strcpy (lastcommand, console_buffer);
- else if (len == 0)
- flag |= CMD_FLAG_REPEAT;
if (len == -1)
puts ("<INTERRUPT>\n");