aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-device.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-12-18 14:52:36 +0100
committerDavid Sterba <dsterba@suse.cz>2014-12-18 15:24:45 +0100
commit182f41909fe2121d8e605441713d8d7fc8ded70a (patch)
treef2a4c856b59d4daf60d6cf9d92ddd6d1528aa969 /cmds-device.c
parent50662b31002a19ca0aad200d2317f5ee832c4fc5 (diff)
downloadbtrfs-progs-182f41909fe2121d8e605441713d8d7fc8ded70a.tar.gz
btrfs-progs-182f41909fe2121d8e605441713d8d7fc8ded70a.tar.xz
btrfs-progs-182f41909fe2121d8e605441713d8d7fc8ded70a.zip
btrfs-progs: unify unit mode parameters and variables
Use unsigned type and a common name everywhere. Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds-device.c b/cmds-device.c
index 13458d8..9dd52a4 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -465,7 +465,7 @@ const char * const cmd_device_usage_usage[] = {
NULL
};
-static int _cmd_device_usage(int fd, char *path, int mode)
+static int _cmd_device_usage(int fd, char *path, unsigned unit_mode)
{
int i;
int ret = 0;
@@ -481,9 +481,9 @@ static int _cmd_device_usage(int fd, char *path, int mode)
for (i = 0; i < devcount; i++) {
printf("%s, ID: %llu\n", devinfo[i].path, devinfo[i].devid);
- print_device_sizes(fd, &devinfo[i], mode);
+ print_device_sizes(fd, &devinfo[i], unit_mode);
print_device_chunks(fd, &devinfo[i], chunkinfo, chunkcount,
- mode);
+ unit_mode);
printf("\n");
}