From f551548372efa9a22a34e4f1b74fa794d304e6f5 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Wed, 13 Jul 2016 19:41:55 +0200 Subject: btrfs-progs: do not set optind if not necessary In the subcommand callbacks that are called just once, we don't need to explicitly reset optind. Signed-off-by: David Sterba --- btrfstune.c | 1 - 1 file changed, 1 deletion(-) (limited to 'btrfstune.c') diff --git a/btrfstune.c b/btrfstune.c index f731e3d2..ac559fb9 100644 --- a/btrfstune.c +++ b/btrfstune.c @@ -399,7 +399,6 @@ int main(int argc, char *argv[]) int ret; u64 super_flags = 0; - optind = 1; while(1) { static const struct option long_options[] = { { "help", no_argument, NULL, GETOPT_VAL_HELP}, -- cgit v1.2.3