fix clang warnings in servers/

This commit is contained in:
Ben Gras 2011-05-12 22:23:02 +02:00
parent 674cd6fd48
commit 314d09adf7
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@
#include <minix/callnr.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <minix/dmap.h>
#include <minix/endpoint.h>

View file

@ -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);