btrfs-progs: convert, fix typo in getopt value

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>
This commit is contained in:
David Sterba 2015-03-23 18:27:19 +01:00
parent d738c3d292
commit 3bd8c99274

View 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,