From: Chandan Babu R Date: Mon, 6 Nov 2023 13:10:34 +0000 (+0530) Subject: metadump: Use boolean values true/false instead of 1/0 X-Git-Tag: v6.6.0~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ea310101abf621b3807ee6bebd04d2490930be6;p=thirdparty%2Fxfsprogs-dev.git metadump: Use boolean values true/false instead of 1/0 Reviewed-by: "Darrick J. Wong" Signed-off-by: Chandan Babu R Signed-off-by: Carlos Maiolino --- diff --git a/db/metadump.c b/db/metadump.c index 3545124fc..dab14e592 100644 --- a/db/metadump.c +++ b/db/metadump.c @@ -2101,12 +2101,12 @@ process_inode( case S_IFDIR: rval = process_inode_data(dip, TYP_DIR2); if (dip->di_format == XFS_DINODE_FMT_LOCAL) - need_new_crc = 1; + need_new_crc = true; break; case S_IFLNK: rval = process_inode_data(dip, TYP_SYMLINK); if (dip->di_format == XFS_DINODE_FMT_LOCAL) - need_new_crc = 1; + need_new_crc = true; break; case S_IFREG: rval = process_inode_data(dip, TYP_DATA); @@ -2116,7 +2116,7 @@ process_inode( case S_IFBLK: case S_IFSOCK: process_dev_inode(dip); - need_new_crc = 1; + need_new_crc = true; break; default: break; @@ -2130,7 +2130,7 @@ process_inode( attr_data.remote_val_count = 0; switch (dip->di_aformat) { case XFS_DINODE_FMT_LOCAL: - need_new_crc = 1; + need_new_crc = true; if (obfuscate || zero_stale_data) process_sf_attr(dip); break; @@ -2149,7 +2149,7 @@ process_inode( done: /* Heavy handed but low cost; just do it as a catch-all. */ if (zero_stale_data) - need_new_crc = 1; + need_new_crc = true; if (crc_was_ok && need_new_crc) libxfs_dinode_calc_crc(mp, dip);