type coercions. With this fixed I can back out the hack in df.
-/* $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 $ */
/*
#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 */
(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) {
-.\" $OpenBSD: getfsstat.2,v 1.11 1999/12/31 03:43:23 millert Exp $
+.\" $OpenBSD: getfsstat.2,v 1.12 2000/03/24 19:07:49 millert Exp $
.\" $NetBSD: getfsstat.2,v 1.6 1995/06/29 11:40:44 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
struct statfs {
u_int32_t f_flags; /* copy of mount flags */
- u_int32_t f_bsize; /* fundamental file system block size */
+ int32_t f_bsize; /* fundamental file system block size */
u_int32_t f_iosize; /* optimal transfer block size */
u_int32_t f_blocks; /* total data blocks in file system */
u_int32_t f_bfree; /* free blocks in fs */
-.\" $OpenBSD: statfs.2,v 1.12 1999/12/31 03:43:24 millert Exp $
+.\" $OpenBSD: statfs.2,v 1.13 2000/03/24 19:07:49 millert Exp $
.\" $NetBSD: statfs.2,v 1.10 1995/06/29 11:40:48 cgd Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993
struct statfs {
u_int32_t f_flags; /* copy of mount flags */
- u_int32_t f_bsize; /* fundamental file system block size */
+ int32_t f_bsize; /* fundamental file system block size */
u_int32_t f_iosize; /* optimal transfer block size */
u_int32_t f_blocks; /* total data blocks in file system */
u_int32_t f_bfree; /* free blocks in fs */
-/* $OpenBSD: mount.h,v 1.34 2000/02/09 10:29:56 assar Exp $ */
+/* $OpenBSD: mount.h,v 1.35 2000/03/24 19:07:48 millert Exp $ */
/* $NetBSD: mount.h,v 1.48 1996/02/18 11:55:47 fvdl Exp $ */
/*
/* new statfs structure with mount options */
struct statfs {
u_int32_t f_flags; /* copy of mount flags */
- u_int32_t f_bsize; /* fundamental file system block size */
+ int32_t f_bsize; /* fundamental file system block size */
u_int32_t f_iosize; /* optimal transfer block size */
u_int32_t f_blocks; /* total data blocks in file system */
u_int32_t f_bfree; /* free blocks in fs */