summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-05-03 09:54:37 +0000
committerkib <kib@FreeBSD.org>2017-05-03 09:54:37 +0000
commitaab0b84fb38432839992f6ac5442acff507caebb (patch)
tree17b67cf31f2e0156e52bba56f99c2ad7b45a0ea8 /lib
parentf0484bc215755f0a635180aefe0fd884a770ee5f (diff)
downloadFreeBSD-src-aab0b84fb38432839992f6ac5442acff507caebb.zip
FreeBSD-src-aab0b84fb38432839992f6ac5442acff507caebb.tar.gz
MFC r317436:
getpagesize(3) cannot fail.
Diffstat (limited to 'lib')
-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 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);
}
OpenPOWER on IntegriCloud