fsck-fuzix: fix consts
authorAlan Cox <alan@linux.intel.com>
Mon, 3 Sep 2018 23:18:10 +0000 (00:18 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 3 Sep 2018 23:18:10 +0000 (00:18 +0100)
Applications/util/fsck-fuzix.c

index 7895dc7..2d71d97 100644 (file)
@@ -144,7 +144,7 @@ static int bittest(uint16_t b)
     return (bitmap[b >> 3] & (1 << (b & 7))) ? 1 : 0;
 }
 
-static void panic(char *s)
+static void panic(const char *s)
 {
        fprintf(stderr, "panic: %s\n", s);
        exit(error | 8);
@@ -315,6 +315,7 @@ static void pass1(void)
         ++icount;
         /* Check size */
 
+        /* FIXME: check not <0 but > max allowed as unsigned */
         if (ino.i_size < 0) {
             printf("Inode %u offset is negative with value of %ld. Fix? ",
                     n, ino.i_size);