summaryrefslogtreecommitdiff
path: root/btrfs-map-logical.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-01 16:28:11 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-14 13:42:47 +0100
commit6398ed78f9d52769954ba5fe3c15452c390397a7 (patch)
tree4f4ab4ab52256f5a4bfed0b3edd8548871e40a20 /btrfs-map-logical.c
parentf4fc6efa4bff2abbe073790e1acdcd5efb53124b (diff)
btrfs-progs: unify naming of argc and argv
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'btrfs-map-logical.c')
-rw-r--r--btrfs-map-logical.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index 0161b5c6..152b141e 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -201,7 +201,7 @@ static void print_usage(void)
exit(1);
}
-int main(int ac, char **av)
+int main(int argc, char **argv)
{
struct cache_tree root_cache;
struct btrfs_root *root;
@@ -227,7 +227,7 @@ int main(int ac, char **av)
{ NULL, 0, NULL, 0}
};
- c = getopt_long(ac, av, "l:c:o:b:", long_options, NULL);
+ c = getopt_long(argc, argv, "l:c:o:b:", long_options, NULL);
if (c < 0)
break;
switch(c) {
@@ -247,14 +247,14 @@ int main(int ac, char **av)
print_usage();
}
}
- set_argv0(av);
- ac = ac - optind;
- if (check_argc_min(ac, 1))
+ set_argv0(argv);
+ argc = argc - optind;
+ if (check_argc_min(argc, 1))
print_usage();
if (logical == 0)
print_usage();
- dev = av[optind];
+ dev = argv[optind];
radix_tree_init();
cache_tree_init(&root_cache);