summaryrefslogtreecommitdiff
path: root/btrfs-corrupt-block.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-corrupt-block.c')
-rw-r--r--btrfs-corrupt-block.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c
index f332bdf7..56b553d2 100644
--- a/btrfs-corrupt-block.c
+++ b/btrfs-corrupt-block.c
@@ -1017,7 +1017,6 @@ int main(int ac, char **av)
while(1) {
int c;
- int option_index = 0;
static const struct option long_options[] = {
/* { "byte-count", 1, NULL, 'b' }, */
{ "logical", 1, NULL, 'l' },
@@ -1041,7 +1040,7 @@ int main(int ac, char **av)
};
c = getopt_long(ac, av, "l:c:b:eEkuUi:f:x:m:K:IDdr:",
- long_options, &option_index);
+ long_options, NULL);
if (c < 0)
break;
switch(c) {