comparison src/tools/mkfs.c @ 22:397e74cbf14e

fix warnings
author mir3636
date Sat, 07 Apr 2018 19:05:00 +0900
parents 83c23a36980d
children
comparison
equal deleted inserted replaced
21:45035047d186 22:397e74cbf14e
8 #define stat xv6_stat // avoid clash with host struct stat 8 #define stat xv6_stat // avoid clash with host struct stat
9 #include "types.h" 9 #include "types.h"
10 #include "fs.h" 10 #include "fs.h"
11 #include "stat.h" 11 #include "stat.h"
12 #include "param.h" 12 #include "param.h"
13 13 #ifndef static_assert
14 #define static_assert(a, b) do { switch (0) case 0: case (a): ; } while (0) 14 #define static_assert(a, b) do { switch (0) case 0: case (a): ; } while (0)
15 #endif
15 16
16 int nblocks = 985; 17 int nblocks = 985;
17 int nlog = LOGSIZE; 18 int nlog = LOGSIZE;
18 int ninodes = 200; 19 int ninodes = 200;
19 int size = 1024; 20 int size = 1024;