diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-24 19:07:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-03-24 19:07:50 +0000 |
commit | d3c473c5469bee7769b56b4c76ec67456d7c2fef (patch) | |
tree | c8ce83425760e54d4c71faa93fa7970153ed1761 /bin/df/df.c | |
parent | 3e965a9994d982e72b5f27ffb92fe681891e6d05 (diff) |
Make f_bsize signed. Having it unsigned causes surprising (and unwanted)
type coercions. With this fixed I can back out the hack in df.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r-- | bin/df/df.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 4f6e39dc99d..818e66d9a87 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -1,4 +1,4 @@ -/* $OpenBSD: df.c,v 1.25 1999/12/31 05:00:04 millert Exp $ */ +/* $OpenBSD: df.c,v 1.26 2000/03/24 19:07:49 millert Exp $ */ /* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */ /* @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: df.c,v 1.25 1999/12/31 05:00:04 millert Exp $"; +static char rcsid[] = "$OpenBSD: df.c,v 1.26 2000/03/24 19:07:49 millert Exp $"; #endif #endif /* not lint */ @@ -382,7 +382,7 @@ prtstat(sfsp, maxwidth, headerlen, blocksize) (void)printf(" %*u %8u %8d", headerlen, fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize), fsbtoblk(used, sfsp->f_bsize, blocksize), - fsbtoblk(sfsp->f_bavail, (int)sfsp->f_bsize, blocksize)); + fsbtoblk(sfsp->f_bavail, sfsp->f_bsize, blocksize)); (void)printf(" %5.0f%%", availblks == 0 ? 100.0 : (double)used / (double)availblks * 100.0); if (iflag) { |