From: Ben Gras Date: Thu, 12 May 2011 20:23:02 +0000 (+0200) Subject: fix clang warnings in servers/ X-Git-Tag: v3.2.0~560 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/mdoc.3.ps?a=commitdiff_plain;h=314d09adf77c65101f89a938c9e19e56f966895e;p=minix.git fix clang warnings in servers/ --- 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);