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 /lib/libc/sys | |
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 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/getfsstat.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/statfs.2 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/getfsstat.2 b/lib/libc/sys/getfsstat.2 index ef0285afa62..69a872d9d17 100644 --- a/lib/libc/sys/getfsstat.2 +++ b/lib/libc/sys/getfsstat.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -60,7 +60,7 @@ typedef struct { int32_t val[2]; } fsid_t; 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 */ diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2 index f579c674ef6..9ac4c675eb3 100644 --- a/lib/libc/sys/statfs.2 +++ b/lib/libc/sys/statfs.2 @@ -1,4 +1,4 @@ -.\" $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 @@ -64,7 +64,7 @@ typedef struct { int32_t val[2]; } fsid_t; 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 */ |