From aab0b84fb38432839992f6ac5442acff507caebb Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 3 May 2017 09:54:37 +0000 Subject: MFC r317436: getpagesize(3) cannot fail. --- lib/libc/gen/getpagesize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/gen/getpagesize.c b/lib/libc/gen/getpagesize.c index 62178eb..62b7e91 100644 --- a/lib/libc/gen/getpagesize.c +++ b/lib/libc/gen/getpagesize.c @@ -69,7 +69,7 @@ getpagesize() mib[1] = HW_PAGESIZE; size = sizeof value; if (sysctl(mib, nitems(mib), &value, &size, NULL, 0) == -1) - return (-1); + return (PAGE_SIZE); return (value); } -- cgit v1.1