fix clang warnings in servers/
This commit is contained in:
parent
674cd6fd48
commit
314d09adf7
@ -3,6 +3,7 @@
|
|||||||
#include <minix/callnr.h>
|
#include <minix/callnr.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <minix/dmap.h>
|
#include <minix/dmap.h>
|
||||||
#include <minix/endpoint.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)
|
/* TODO: this code is for revision 1 (but bw compatible with 0)
|
||||||
* inode must be power of 2 and smaller, than block size.
|
* 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) {
|
|| EXT2_INODE_SIZE(sp) > sp->s_block_size) {
|
||||||
printf("superblock->s_inode_size is incorrect...\n");
|
printf("superblock->s_inode_size is incorrect...\n");
|
||||||
return(EINVAL);
|
return(EINVAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user