From 5fa524bb3894799058f4911da10e5bf872e95b72 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 4 Sep 2018 00:18:10 +0100 Subject: [PATCH] fsck-fuzix: fix consts --- Applications/util/fsck-fuzix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1