diff options
author | bde <bde@FreeBSD.org> | 1995-05-07 08:13:37 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-05-07 08:13:37 +0000 |
commit | 81ec7fa477e3bafc139dd8207803d40bd1633b79 (patch) | |
tree | 1f94806afac9c5d1adeb272ad7ec7b816698bb1f /usr.sbin/repquota/repquota.c | |
parent | c22155de74af576ecb1f3a132137b5caf6b684a8 (diff) | |
download | FreeBSD-src-81ec7fa477e3bafc139dd8207803d40bd1633b79.zip FreeBSD-src-81ec7fa477e3bafc139dd8207803d40bd1633b79.tar.gz |
Fix 3 fatal mismatches in format args involving dbtob() and 7 nonfatal
mismatches.
Diffstat (limited to 'usr.sbin/repquota/repquota.c')
-rw-r--r-- | usr.sbin/repquota/repquota.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/repquota/repquota.c b/usr.sbin/repquota/repquota.c index 29989eb..2904a60 100644 --- a/usr.sbin/repquota/repquota.c +++ b/usr.sbin/repquota/repquota.c @@ -213,21 +213,21 @@ repquota(fs, type, qfpathname) fup->fu_dqblk.dqb_curblocks == 0) continue; printf("%-10s", fup->fu_name); - printf("%c%c%8d%8d%8d%7s", + printf("%c%c%8lu%8lu%8lu%7s", fup->fu_dqblk.dqb_bsoftlimit && fup->fu_dqblk.dqb_curblocks >= fup->fu_dqblk.dqb_bsoftlimit ? '+' : '-', fup->fu_dqblk.dqb_isoftlimit && fup->fu_dqblk.dqb_curinodes >= fup->fu_dqblk.dqb_isoftlimit ? '+' : '-', - dbtob(fup->fu_dqblk.dqb_curblocks) / 1024, - dbtob(fup->fu_dqblk.dqb_bsoftlimit) / 1024, - dbtob(fup->fu_dqblk.dqb_bhardlimit) / 1024, + (u_long)(dbtob(fup->fu_dqblk.dqb_curblocks) / 1024), + (u_long)(dbtob(fup->fu_dqblk.dqb_bsoftlimit) / 1024), + (u_long)(dbtob(fup->fu_dqblk.dqb_bhardlimit) / 1024), fup->fu_dqblk.dqb_bsoftlimit && fup->fu_dqblk.dqb_curblocks >= fup->fu_dqblk.dqb_bsoftlimit ? timeprt(fup->fu_dqblk.dqb_btime) : ""); - printf(" %6d%6d%6d%7s\n", + printf(" %6lu%6lu%6lu%7s\n", fup->fu_dqblk.dqb_curinodes, fup->fu_dqblk.dqb_isoftlimit, fup->fu_dqblk.dqb_ihardlimit, @@ -343,7 +343,7 @@ addid(id, type, name) if (name) { bcopy(name, fup->fu_name, len + 1); } else { - sprintf(fup->fu_name, "%u", id); + sprintf(fup->fu_name, "%lu", id); } return (fup); } @@ -367,13 +367,13 @@ timeprt(seconds) minutes = (seconds + 30) / 60; hours = (minutes + 30) / 60; if (hours >= 36) { - sprintf(buf, "%ddays", (hours + 12) / 24); + sprintf(buf, "%lddays", (hours + 12) / 24); return (buf); } if (minutes >= 60) { - sprintf(buf, "%2d:%d", minutes / 60, minutes % 60); + sprintf(buf, "%2ld:%ld", minutes / 60, minutes % 60); return (buf); } - sprintf(buf, "%2d", minutes); + sprintf(buf, "%2ld", minutes); return (buf); } |