public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ae085
)
fsck-fuzix: fix consts
author
Alan Cox
<alan@linux.intel.com>
Mon, 3 Sep 2018 23:18:10 +0000
(
00:18
+0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 3 Sep 2018 23:18:10 +0000
(
00:18
+0100)
Applications/util/fsck-fuzix.c
patch
|
blob
|
history
diff --git
a/Applications/util/fsck-fuzix.c
b/Applications/util/fsck-fuzix.c
index
7895dc7
..
2d71d97
100644
(file)
--- 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(c
onst c
har *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);