diff mbox series

[1/7] btrfs-progs: check_mounted_where: declare is_btrfs as bool

Message ID baed95f39e04b46fba014509af5fced8b300e154.1686202417.git.anand.jain@oracle.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: cleanup and preparatory around device scan | expand

Commit Message

Anand Jain June 8, 2023, 6 a.m. UTC
The variable 'is_btrfs' is declared as an integer but could be a boolean
instead.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
---
 common/open-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Qu Wenruo June 8, 2023, 6:11 a.m. UTC | #1
On 2023/6/8 14:00, Anand Jain wrote:
> The variable 'is_btrfs' is declared as an integer but could be a boolean
> instead.
>
> Signed-off-by: Anand Jain <anand.jain@oracle.com>

Reviewed-by: Qu Wenruo <wqu@suse.com>

Thanks,
Qu

> ---
>   common/open-utils.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/open-utils.c b/common/open-utils.c
> index d4fdb2b01c7f..01d747d8ac43 100644
> --- a/common/open-utils.c
> +++ b/common/open-utils.c
> @@ -57,7 +57,7 @@ int check_mounted_where(int fd, const char *file, char *where, int size,
>   {
>   	int ret;
>   	u64 total_devs = 1;
> -	int is_btrfs;
> +	bool is_btrfs;
>   	struct btrfs_fs_devices *fs_devices_mnt = NULL;
>   	FILE *f;
>   	struct mntent *mnt;
diff mbox series

Patch

diff --git a/common/open-utils.c b/common/open-utils.c
index d4fdb2b01c7f..01d747d8ac43 100644
--- a/common/open-utils.c
+++ b/common/open-utils.c
@@ -57,7 +57,7 @@  int check_mounted_where(int fd, const char *file, char *where, int size,
 {
 	int ret;
 	u64 total_devs = 1;
-	int is_btrfs;
+	bool is_btrfs;
 	struct btrfs_fs_devices *fs_devices_mnt = NULL;
 	FILE *f;
 	struct mntent *mnt;