aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/fsutil.c
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
committerIan Dowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
commitbf58d635bac7f4dc2bff0a18436e473e048a0512 (patch)
tree56abbf1dd0c6a1ca1e2e07f6e517262106e893df /sbin/fsck_ffs/fsutil.c
parentcfbfffc8e96d25904cff76ed0389e554dcef71c7 (diff)
downloadsrc-bf58d635bac7f4dc2bff0a18436e473e048a0512.tar.gz
src-bf58d635bac7f4dc2bff0a18436e473e048a0512.zip
Fix a large number of -Wall, -Wformat and -W compiler warnings.
These were mainly missing casts or wrong format strings in printf statements, but there were also missing includes, unused variables, functions and arguments. The choice of `long' vs `int' still seems almost random in a lot of places though.
Notes
Notes: svn path=/head/; revision=86514
Diffstat (limited to 'sbin/fsck_ffs/fsutil.c')
-rw-r--r--sbin/fsck_ffs/fsutil.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/sbin/fsck_ffs/fsutil.c b/sbin/fsck_ffs/fsutil.c
index 7cbde0ca27ce..74dda9992a43 100644
--- a/sbin/fsck_ffs/fsutil.c
+++ b/sbin/fsck_ffs/fsutil.c
@@ -41,6 +41,7 @@ static const char rcsid[] =
#include <sys/param.h>
#include <sys/types.h>
+#include <sys/sysctl.h>
#include <sys/stat.h>
#include <ufs/ufs/dinode.h>
@@ -268,7 +269,7 @@ rwerror(mesg, blk)
exit(EEXIT);
if (preen == 0)
printf("\n");
- pfatal("CANNOT %s: %ld", mesg, blk);
+ pfatal("CANNOT %s: %ld", mesg, (long)blk);
if (reply("CONTINUE") == 0)
exit(EEXIT);
}
@@ -565,20 +566,6 @@ catchquit(sig)
}
/*
- * Ignore a single quit signal; wait and flush just in case.
- * Used by child processes in preen.
- */
-void
-voidquit(sig)
- int sig;
-{
-
- sleep(1);
- (void)signal(SIGQUIT, SIG_IGN);
- (void)signal(SIGQUIT, SIG_DFL);
-}
-
-/*
* determine whether an inode should be fixed.
*/
int