From 531e94a7020267e10329e874d006b166daab319f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 1 Jun 1999 15:31:14 +0000 Subject: getfsstat now takes a size_t, not long, for the length parameter --- lib/libc/gen/getmntinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/libc') 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 -#include #include #include @@ -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); -- cgit v1.2.3