diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-11-17 23:48:21 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-11-17 23:48:21 +0000 |
commit | a0dc2079d2250dceca0b5ca75daa78b05554a474 (patch) | |
tree | 56abbf1dd0c6a1ca1e2e07f6e517262106e893df /sbin/fsck_ffs/pass3.c | |
parent | 43a07b3eb5824c0153abcabaa9195186756dda01 (diff) | |
download | FreeBSD-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/pass3.c')
-rw-r--r-- | sbin/fsck_ffs/pass3.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/fsck_ffs/pass3.c b/sbin/fsck_ffs/pass3.c index 8e43636..0cc0722 100644 --- a/sbin/fsck_ffs/pass3.c +++ b/sbin/fsck_ffs/pass3.c @@ -61,8 +61,8 @@ pass3() for (inpindex = inplast - 1; inpindex >= 0; inpindex--) { if (got_siginfo) { printf("%s: phase 3: dir %d of %d (%d%%)\n", cdevname, - inplast - inpindex - 1, inplast, - (inplast - inpindex - 1) * 100 / inplast); + (int)(inplast - inpindex - 1), (int)inplast, + (int)((inplast - inpindex - 1) * 100 / inplast)); got_siginfo = 0; } inp = inpsort[inpindex]; @@ -101,7 +101,8 @@ pass3() propagate(); continue; } - pfatal("ORPHANED DIRECTORY LOOP DETECTED I=%lu", orphan); + pfatal("ORPHANED DIRECTORY LOOP DETECTED I=%lu", + (u_long)orphan); if (reply("RECONNECT") == 0) continue; memset(&idesc, 0, sizeof(struct inodesc)); |