From 0e4e1b1ed92bb687bd5a7decc3b54118b6cf401b Mon Sep 17 00:00:00 2001 From: Satoru Takeuchi Date: Fri, 19 Dec 2014 14:31:54 +0900 Subject: btrfs-progs: cleanup: avoid to use literal for getopt val Signed-off-by: David Sterba --- cmds-filesystem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmds-filesystem.c') diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 7eaccb9f..8f037dd7 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -216,8 +216,8 @@ static int cmd_filesystem_df(int argc, char **argv) { "mbytes", no_argument, NULL, 'm'}, { "gbytes", no_argument, NULL, 'g'}, { "tbytes", no_argument, NULL, 't'}, - { "si", no_argument, NULL, 256}, - { "iec", no_argument, NULL, 257}, + { "si", no_argument, NULL, GETOPT_VAL_SI}, + { "iec", no_argument, NULL, GETOPT_VAL_IEC}, }; int c = getopt_long(argc, argv, "bhHkmgt", long_options, &long_index); @@ -245,10 +245,10 @@ static int cmd_filesystem_df(int argc, char **argv) case 'H': unit_mode = UNITS_HUMAN_DECIMAL; break; - case 256: + case GETOPT_VAL_SI: units_set_mode(&unit_mode, UNITS_DECIMAL); break; - case 257: + case GETOPT_VAL_IEC: units_set_mode(&unit_mode, UNITS_BINARY); break; default: -- cgit v1.2.3