btrfs-progs: use check_argc_* to check arg number for all tools
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Wed, 16 Jul 2014 03:59:46 +0000 (11:59 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 22 Aug 2014 13:07:02 +0000 (15:07 +0200)
commitf1672e50c7f73cbdb1d9817e126c41a3db6d93ce
tree98fe7252df2c382e7df70fb8a223c075416e0bbf
parent2e1accf4fd47e90584b1741ff53bf7eec41d5510
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>
15 files changed:
btrfs-calc-size.c
btrfs-convert.c
btrfs-corrupt-block.c
btrfs-crc.c
btrfs-debug-tree.c
btrfs-find-root.c
btrfs-fragments.c
btrfs-map-logical.c
btrfs-select-super.c
btrfs-show-super.c
btrfs-zero-log.c
btrfstune.c
cmds-check.c
cmds-restore.c
cmds-send.c