btrfs-progs: qgroup: Use bool to replace int for @rescan

Use more appropriate type.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Qu Wenruo 2018-08-06 14:00:06 +08:00 committed by David Sterba
parent eac0574797
commit 922e555108
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ static int _cmd_qgroup_assign(int assign, int argc, char **argv,
{
int ret = 0;
int fd;
int rescan = 0;
bool rescan = false;
char *path;
struct btrfs_ioctl_qgroup_assign_args args;
DIR *dirstream = NULL;
@ -62,10 +62,10 @@ static int _cmd_qgroup_assign(int assign, int argc, char **argv,
break;
switch (c) {
case GETOPT_VAL_RESCAN:
rescan = 1;
rescan = true;
break;
case GETOPT_VAL_NO_RESCAN:
rescan = 0;
rescan = false;
break;
default:
/* Usage printed by the caller */