diff options
author | Gui Hecheng <guihc.fnst@cn.fujitsu.com> | 2014-07-16 11:59:46 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2014-08-22 15:07:02 +0200 |
commit | f1672e50c7f73cbdb1d9817e126c41a3db6d93ce (patch) | |
tree | 98fe7252df2c382e7df70fb8a223c075416e0bbf /cmds-check.c | |
parent | 2e1accf4fd47e90584b1741ff53bf7eec41d5510 (diff) |
btrfs-progs: use check_argc_* to check arg number for all tools
Since this patch:
btrfs-progs: move the check_argc_* functions into utils.c
All tools including the independent tools(e.g. btrfs-image, btrfs-convert)
can share the convenience of the check_argc_* functions, so this patch
adopt the argc check functions globally.
Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'cmds-check.c')
-rw-r--r-- | cmds-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c index e2060cba..75965af3 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -6634,7 +6634,7 @@ int cmd_check(int argc, char **argv) } argc = argc - optind; - if (argc != 1) + if (check_argc_exact(argc, 1)) usage(cmd_check_usage); radix_tree_init(); |