btrfs-progs: Avoid use pointer in handle_options
authorZhao Lei <zhaolei@cn.fujitsu.com>
Thu, 29 Oct 2015 09:31:48 +0000 (17:31 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 2 Nov 2015 14:10:14 +0000 (15:10 +0100)
commitc9bddcacbc6cad10e65a305e9382648346bbe896
treeee637492d22587c8ec3613571a1bd41d36626bf2
parenteccf7aa62e638c627c05852cf5cac5ad0c951279
btrfs-progs: Avoid use pointer in handle_options

We use pointer of argc and argv in handle_options() because they
are necessary in very old code which are not exist now.

This patch move to use argc and argv directly in handle_options(),
alone with following update:
1: rename handle_options() to check_options()
   to fit its function.
2: cleanup for condition in handle_options() to make line short.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs.c