diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2016-12-15 13:30:55 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-01-25 09:48:36 +0100 |
commit | 6f7c540d77055dde53df7b7463ce656d42ec6c3b (patch) | |
tree | ba7401a566eb0c367253b3642ff5402675ca7135 /cmds-qgroup.c | |
parent | bd1ac1fb1d33188eaa7834af215e78ab41166d7a (diff) |
btrfs-progs: qgroup: change the value of sort option
The value of sort option ('S') is not used for option letter.
Therefore, I'll change the single letter to non-character.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-qgroup.c')
-rw-r--r-- | cmds-qgroup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmds-qgroup.c b/cmds-qgroup.c index 6f073099..9b245b09 100644 --- a/cmds-qgroup.c +++ b/cmds-qgroup.c @@ -312,10 +312,11 @@ static int cmd_qgroup_show(int argc, char **argv) while (1) { int c; enum { - GETOPT_VAL_SYNC = 256 + GETOPT_VAL_SORT = 256, + GETOPT_VAL_SYNC }; static const struct option long_options[] = { - {"sort", required_argument, NULL, 'S'}, + {"sort", required_argument, NULL, GETOPT_VAL_SORT}, {"sync", no_argument, NULL, GETOPT_VAL_SYNC}, { NULL, 0, NULL, 0 } }; @@ -346,7 +347,7 @@ static int cmd_qgroup_show(int argc, char **argv) case 'f': filter_flag |= 0x2; break; - case 'S': + case GETOPT_VAL_SORT: ret = btrfs_qgroup_parse_sort_string(optarg, &comparer_set); if (ret) |