aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-device.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-04-28 18:13:16 +0200
committerDavid Sterba <dsterba@suse.cz>2014-12-04 16:48:11 +0100
commit4ed59c256a497bd7618a3bc6acf01d6a0db0a656 (patch)
tree6b6ba56d890090f3576e71bd82149a7f72d9ecef /cmds-device.c
parent0c67867530f6dd706eaa41a6eaa44245a3252a90 (diff)
downloadbtrfs-progs-4ed59c256a497bd7618a3bc6acf01d6a0db0a656.tar.gz
btrfs-progs-4ed59c256a497bd7618a3bc6acf01d6a0db0a656.tar.xz
btrfs-progs-4ed59c256a497bd7618a3bc6acf01d6a0db0a656.zip
btrfs-progs: replace df_pretty_sizes with pretty_size_mode
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 9294046..ad7b724 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -492,19 +492,19 @@ exit:
int cmd_device_usage(int argc, char **argv)
{
- int flags = DF_HUMAN_UNIT;
+ int mode = UNITS_HUMAN;
int i, more_than_one = 0;
optind = 1;
while (1) {
- char c = getopt(argc, argv, "b");
+ int c = getopt(argc, argv, "b");
if (c < 0)
break;
switch (c) {
case 'b':
- flags &= ~DF_HUMAN_UNIT;
+ mode = UNITS_RAW;
break;
default:
usage(cmd_device_usage_usage);
@@ -527,7 +527,7 @@ int cmd_device_usage(int argc, char **argv)
return 12;
}
- r = _cmd_device_usage(fd, argv[i], flags);
+ r = _cmd_device_usage(fd, argv[i], mode);
close_file_or_dir(fd, dirstream);
if (r)