btrfs-progs: convert, fix typo in getopt value
authorDavid Sterba <dsterba@suse.cz>
Mon, 23 Mar 2015 17:27:19 +0000 (18:27 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 23 Mar 2015 18:56:23 +0000 (19:56 +0100)
Unfortunatelly GETOPT_VAL_IEC is not equal to GETOPT_VAL_NO_PROGRESS
so --no-progress had no effect.

Signed-off-by: David Sterba <dsterba@suse.cz>
btrfs-convert.c

index 0123654..ff8a959 100644 (file)
@@ -2830,7 +2830,8 @@ int main(int argc, char *argv[])
                int long_index;
                enum { GETOPT_VAL_NO_PROGRESS = 256 };
                static const struct option long_options[] = {
-                       { "no-progress", no_argument, NULL, GETOPT_VAL_IEC},
+                       { "no-progress", no_argument, NULL,
+                               GETOPT_VAL_NO_PROGRESS },
                        { NULL, 0, NULL, 0 }
                };
                int c = getopt_long(argc, argv, "dinN:rl:Lp", long_options,