diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-06-01 15:31:14 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-06-01 15:31:14 +0000 |
commit | 531e94a7020267e10329e874d006b166daab319f (patch) | |
tree | f53d9fb08aadc930fc76f781ffa829d86b9f9e99 /lib/libc | |
parent | 59a709efce0bc7b5371194c7a03ef051dd35e683 (diff) |
getfsstat now takes a size_t, not long, for the length parameter
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getmntinfo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/gen/getmntinfo.c b/lib/libc/gen/getmntinfo.c index ebdbfaa9d25..6b95ec71b0c 100644 --- a/lib/libc/gen/getmntinfo.c +++ b/lib/libc/gen/getmntinfo.c @@ -32,11 +32,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getmntinfo.c,v 1.3 1999/01/08 11:09:21 art Exp $"; +static char rcsid[] = "$OpenBSD: getmntinfo.c,v 1.4 1999/06/01 15:31:13 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> -#include <sys/ucred.h> #include <sys/mount.h> #include <stdlib.h> @@ -50,7 +49,7 @@ getmntinfo(mntbufp, flags) { static struct statfs *mntbuf; static int mntsize; - static long bufsize; + static size_t bufsize; if (mntsize <= 0 && (mntsize = getfsstat(0, 0, MNT_NOWAIT)) < 0) return (0); |