From 6398ed78f9d52769954ba5fe3c15452c390397a7 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Tue, 1 Mar 2016 16:28:11 +0100 Subject: btrfs-progs: unify naming of argc and argv Signed-off-by: David Sterba --- btrfs-map-logical.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'btrfs-map-logical.c') 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); -- cgit v1.2.3