diff options
author | David Sterba <dsterba@suse.com> | 2016-07-13 19:41:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-13 19:41:55 +0200 |
commit | f551548372efa9a22a34e4f1b74fa794d304e6f5 (patch) | |
tree | 7c31ab7f1819e84ac62dc17bb3b00d6cea5a463c /cmds-qgroup.c | |
parent | 83dc05b013ce08d68a4a3cdcf17e6c5506a8383e (diff) |
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 <dsterba@suse.com>
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r-- | cmds-qgroup.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 14418d45..a3bc939a 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -309,7 +309,6 @@ static int cmd_qgroup_show(int argc, char **argv) unit_mode = get_unit_mode_from_arg(&argc, argv, 0); - optind = 1; while (1) { int c; static const struct option long_options[] = { @@ -408,7 +407,6 @@ static int cmd_qgroup_limit(int argc, char **argv) int exclusive = 0; DIR *dirstream = NULL; - optind = 1; while (1) { int c = getopt(argc, argv, "ce"); if (c < 0) |