diff options
author | bde <bde@FreeBSD.org> | 1998-06-28 20:11:23 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-06-28 20:11:23 +0000 |
commit | fa160a825f17be981fcf9ed627e0809166cc5fdd (patch) | |
tree | 84b0a5d7252a1c4c472039e1a49d656c24094054 /sbin/quotacheck | |
parent | 2c93388fd02a00e74a870baaf9c0c3a67027caa4 (diff) | |
download | FreeBSD-src-fa160a825f17be981fcf9ed627e0809166cc5fdd.zip FreeBSD-src-fa160a825f17be981fcf9ed627e0809166cc5fdd.tar.gz |
Fixed printf format errors.
Diffstat (limited to 'sbin/quotacheck')
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 1bee83d..d9ae421 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: quotacheck.c,v 1.7 1997/06/16 06:38:14 charnier Exp $ + * $Id: quotacheck.c,v 1.8 1997/06/30 11:08:29 charnier Exp $ */ #ifndef lint @@ -361,11 +361,13 @@ update(fsname, quotafile, type) printf("%s: ", fsname); printf("%-8s fixed:", fup->fu_name); if (dqbuf.dqb_curinodes != fup->fu_curinodes) - (void)printf("\tinodes %ld -> %ld", - dqbuf.dqb_curinodes, fup->fu_curinodes); + (void)printf("\tinodes %lu -> %lu", + (u_long)dqbuf.dqb_curinodes, + (u_long)fup->fu_curinodes); if (dqbuf.dqb_curblocks != fup->fu_curblocks) - (void)printf("\tblocks %ld -> %ld", - dqbuf.dqb_curblocks, fup->fu_curblocks); + (void)printf("\tblocks %lu -> %lu", + (u_long)dqbuf.dqb_curblocks, + (u_long)fup->fu_curblocks); (void)printf("\n"); } /* @@ -613,5 +615,5 @@ bread(bno, buf, cnt) if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 || read(fi, buf, cnt) != cnt) - errx(1, "block %ld", bno); + errx(1, "block %ld", (long)bno); } |