From 3bd8c9927497ab9bca7870182e7ab6dd27f4f935 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 23 Mar 2015 18:27:19 +0100 Subject: 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 --- btrfs-convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'btrfs-convert.c') diff --git a/btrfs-convert.c b/btrfs-convert.c index 0123654..ff8a959 100644 --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -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, -- cgit v1.2.1