From 314d09adf77c65101f89a938c9e19e56f966895e Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 12 May 2011 22:23:02 +0200 Subject: [PATCH] fix clang warnings in servers/ --- servers/ext2/main.c | 1 + servers/ext2/super.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/ext2/main.c b/servers/ext2/main.c index 54cf49058..ff84bab51 100644 --- a/servers/ext2/main.c +++ b/servers/ext2/main.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include diff --git a/servers/ext2/super.c b/servers/ext2/super.c index cb1d83b94..628a1478c 100644 --- a/servers/ext2/super.c +++ b/servers/ext2/super.c @@ -123,7 +123,7 @@ register struct super_block *sp; /* pointer to a superblock */ /* TODO: this code is for revision 1 (but bw compatible with 0) * inode must be power of 2 and smaller, than block size. */ - if (EXT2_INODE_SIZE(sp) & (EXT2_INODE_SIZE(sp) - 1) != 0 + if ((EXT2_INODE_SIZE(sp) & (EXT2_INODE_SIZE(sp) - 1)) != 0 || EXT2_INODE_SIZE(sp) > sp->s_block_size) { printf("superblock->s_inode_size is incorrect...\n"); return(EINVAL); -- 2.44.0