aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs/dir.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/dir.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/dir.c')
-rw-r--r--sbin/fsck_ffs/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c
index 94c6eada4fcb..5bd6b42a1170 100644
--- a/sbin/fsck_ffs/dir.c
+++ b/sbin/fsck_ffs/dir.c
@@ -373,7 +373,7 @@ adjust(idesc, lcnt)
cmd.value = idesc->id_number;
cmd.size = -lcnt;
if (debug)
- printf("adjrefcnt ino %d amt %d\n",
+ printf("adjrefcnt ino %ld amt %ld\n",
(long)cmd.value, cmd.size);
if (sysctl(adjrefcnt, MIBSIZE, 0, 0,
&cmd, sizeof cmd) == -1)
@@ -545,7 +545,7 @@ linkup(orphan, parentdir, name)
dp->di_nlink++;
inodirty();
inoinfo(lfdir)->ino_linkcnt++;
- pwarn("DIR I=%lu CONNECTED. ", orphan);
+ pwarn("DIR I=%lu CONNECTED. ", (u_long)orphan);
if (parentdir != (ino_t)-1) {
printf("PARENT WAS I=%lu\n", (u_long)parentdir);
/*