summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-05-03 09:52:11 +0000
committerkib <kib@FreeBSD.org>2017-05-03 09:52:11 +0000
commit9b4873327ad8d99ef7ea445859e33b17623c3413 (patch)
treed8e3757ac4e27131138ad57060cfed9ca0d4c319
parent90f1795e78e3f13d5a49412f5dd7a349f1423fd9 (diff)
downloadFreeBSD-src-9b4873327ad8d99ef7ea445859e33b17623c3413.zip
FreeBSD-src-9b4873327ad8d99ef7ea445859e33b17623c3413.tar.gz
MFC r317436:
getpagesize(3) cannot fail.
-rw-r--r--lib/libc/gen/getpagesize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/getpagesize.c b/lib/libc/gen/getpagesize.c
index ffd3085..bf59230 100644
--- a/lib/libc/gen/getpagesize.c
+++ b/lib/libc/gen/getpagesize.c
@@ -69,7 +69,7 @@ getpagesize(void)
mib[1] = HW_PAGESIZE;
size = sizeof value;
if (sysctl(mib, nitems(mib), &value, &size, NULL, 0) == -1)
- return (-1);
+ return (PAGE_SIZE);
return (value);
}
OpenPOWER on IntegriCloud