From 63e01b4969c9eef70b45df279f43a786b0cb2c09 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 17 Oct 2009 12:49:47 +0200 Subject: call getopt_reset only once instead of calling getopt_reset in each command, call it only once before calling the command. Signed-off-by: Sascha Hauer --- commands/timeout.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/timeout.c') diff --git a/commands/timeout.c b/commands/timeout.c index dbf17a7906..8093959216 100644 --- a/commands/timeout.c +++ b/commands/timeout.c @@ -37,8 +37,6 @@ static int do_timeout(cmd_tbl_t *cmdtp, int argc, char *argv[]) int flags = 0, opt, countdown; uint64_t start, second; - getopt_reset(); - while((opt = getopt(argc, argv, "t:crsa")) > 0) { switch(opt) { case 'r': -- cgit v1.2.3