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/ls.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/ls.c') diff --git a/commands/ls.c b/commands/ls.c index 85fe8b53f4..2522546472 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -118,8 +118,6 @@ static int do_ls (cmd_tbl_t *cmdtp, int argc, char *argv[]) ulong flags = LS_COLUMN; struct string_list sl; - getopt_reset(); - while((opt = getopt(argc, argv, "RCl")) > 0) { switch(opt) { case 'R': -- cgit v1.2.3