diff options
author | 2000-03-24 19:07:48 +0000 | |
---|---|---|
committer | 2000-03-24 19:07:48 +0000 | |
commit | b78e048cf75976bdefb9dc45cb7fee701f1d349c (patch) | |
tree | 50db08628f1b59e68c11afa2458b78e3d6cca997 /lib/libc | |
parent | sync (diff) | |
download | wireguard-openbsd-b78e048cf75976bdefb9dc45cb7fee701f1d349c.tar.xz wireguard-openbsd-b78e048cf75976bdefb9dc45cb7fee701f1d349c.zip |
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')
-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 */ |