summaryrefslogtreecommitdiffstats
path: root/src/xfs.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-15 12:29:48 +0100
commit5ed8822f2b3cc95bf7f9bda45bf7b57e8a693f6d (patch)
tree69fd55db22dbc9b3d4d7ebc6aba46203a9c82b0e /src/xfs.c
parent17040353bc6dc9d3ac701037fe90ce69382fb49f (diff)
Turn off various signed/unsigned comparaison warnings
Diffstat (limited to 'src/xfs.c')
-rw-r--r--src/xfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xfs.c b/src/xfs.c
index 59e4f3f..a5c2e87 100644
--- a/src/xfs.c
+++ b/src/xfs.c
@@ -62,9 +62,9 @@ int check_xfs(disk_t *disk_car,partition_t *partition,const int verbose)
static int test_xfs(const disk_t *disk_car, const struct xfs_sb *sb, partition_t *partition, const int verbose)
{
if(sb->sb_magicnum!=be32(XFS_SB_MAGIC) ||
- be16(sb->sb_sectsize) != (1U << sb->sb_sectlog) ||
- be32(sb->sb_blocksize) != (1U << sb->sb_blocklog) ||
- be16(sb->sb_inodesize) != (1U << sb->sb_inodelog))
+ (uint16_t)be16(sb->sb_sectsize) != (1U << sb->sb_sectlog) ||
+ (uint32_t)be32(sb->sb_blocksize) != (1U << sb->sb_blocklog) ||
+ (uint16_t)be16(sb->sb_inodesize) != (1U << sb->sb_inodelog))
return 1;
switch(be16(sb->sb_versionnum) & XFS_SB_VERSION_NUMBITS)
{