summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-06-01 15:31:13 +0000
committermillert <millert@openbsd.org>1999-06-01 15:31:13 +0000
commitba1dad399520317d70b4e49c909d41f9f035704f (patch)
tree5c67184b2634c0a43f71810cbcef6a2b578e06d8
parentfor binutils merge: xstrdup will be needed (diff)
downloadwireguard-openbsd-ba1dad399520317d70b4e49c909d41f9f035704f.tar.xz
wireguard-openbsd-ba1dad399520317d70b4e49c909d41f9f035704f.zip
getfsstat now takes a size_t, not long, for the length parameter
-rw-r--r--lib/libc/gen/getmntinfo.c5
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);