summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/fsutil.c
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
committeriedowse <iedowse@FreeBSD.org>2001-11-17 23:48:21 +0000
commita0dc2079d2250dceca0b5ca75daa78b05554a474 (patch)
tree56abbf1dd0c6a1ca1e2e07f6e517262106e893df /sbin/fsck_ffs/fsutil.c
parent43a07b3eb5824c0153abcabaa9195186756dda01 (diff)
downloadFreeBSD-src-a0dc2079d2250dceca0b5ca75daa78b05554a474.zip
FreeBSD-src-a0dc2079d2250dceca0b5ca75daa78b05554a474.tar.gz
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.
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 7cbde0c..74dda99 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
OpenPOWER on IntegriCloud