From: Alan Cox Date: Mon, 3 Sep 2018 23:18:10 +0000 (+0100) Subject: fsck-fuzix: fix consts X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=5fa524bb3894799058f4911da10e5bf872e95b72;p=FUZIX.git fsck-fuzix: fix consts --- diff --git a/Applications/util/fsck-fuzix.c b/Applications/util/fsck-fuzix.c index 7895dc77..2d71d979 100644 --- a/Applications/util/fsck-fuzix.c +++ b/Applications/util/fsck-fuzix.c @@ -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);