diff options
author | bde <bde@FreeBSD.org> | 1995-04-02 14:52:29 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-04-02 14:52:29 +0000 |
commit | 2742dc81e0a2c14dd7868eadfd72be0636515932 (patch) | |
tree | a0243afdfb4ae252da5d603fe6aa2b611c3539bf /sbin/fsck_ffs/pass1.c | |
parent | 41cee792f999955527ef484e1a2892ffacd9541e (diff) | |
download | FreeBSD-src-2742dc81e0a2c14dd7868eadfd72be0636515932.zip FreeBSD-src-2742dc81e0a2c14dd7868eadfd72be0636515932.tar.gz |
Submitted by: phk, added to by bde
Fix all the warnings from `gcc -Wall'.
Diffstat (limited to 'sbin/fsck_ffs/pass1.c')
-rw-r--r-- | sbin/fsck_ffs/pass1.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sbin/fsck_ffs/pass1.c b/sbin/fsck_ffs/pass1.c index 7d8e507..70ce40a 100644 --- a/sbin/fsck_ffs/pass1.c +++ b/sbin/fsck_ffs/pass1.c @@ -32,7 +32,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)pass1.c 8.1 (Berkeley) 6/5/93"; +static const char sccsid[] = "@(#)pass1.c 8.1 (Berkeley) 6/5/93"; #endif /* not lint */ #include <sys/param.h> @@ -40,15 +40,17 @@ static char sccsid[] = "@(#)pass1.c 8.1 (Berkeley) 6/5/93"; #include <ufs/ufs/dinode.h> #include <ufs/ufs/dir.h> #include <ufs/ffs/fs.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> #include "fsck.h" static daddr_t badblk; static daddr_t dupblk; -int pass1check(); -struct dinode *getnextinode(); +static void checkinode __P((ino_t inumber, struct inodesc *idesc)); + +void pass1() { ino_t inumber; @@ -87,6 +89,7 @@ pass1() freeinodebuf(); } +void checkinode(inumber, idesc) ino_t inumber; register struct inodesc *idesc; @@ -148,7 +151,7 @@ checkinode(inumber, idesc) errexit("cannot read symlink"); if (debug) { symbuf[dp->di_size] = 0; - printf("convert symlink %d(%s) of size %d\n", + printf("convert symlink %ld(%s) of size %ld\n", inumber, symbuf, (long)dp->di_size); } dp = ginode(inumber); @@ -247,6 +250,7 @@ unknown: } } +int pass1check(idesc) register struct inodesc *idesc; { |