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/mem.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/mem.c') diff --git a/commands/mem.c b/commands/mem.c index b31a8f47d1..dd6c497c51 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -138,8 +138,6 @@ static int mem_parse_options(int argc, char *argv[], char *optstr, int *mode, { int opt; - getopt_reset(); - while((opt = getopt(argc, argv, optstr)) > 0) { switch(opt) { case 'b': -- cgit v1.2.3