fix clang warnings in servers/
This commit is contained in:
parent
674cd6fd48
commit
314d09adf7
2 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue