Author: ngie Date: Tue Apr 19 22:59:21 2016 New Revision: 298303 URL: https://svnweb.freebsd.org/changeset/base/298303
Log: Remove trailing whitespace and use `nitems(mib)` instead of `2` when calling sysctl(3) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Modified: head/lib/libc/gen/getpagesize.c Modified: head/lib/libc/gen/getpagesize.c ============================================================================== --- head/lib/libc/gen/getpagesize.c Tue Apr 19 22:38:31 2016 (r298302) +++ head/lib/libc/gen/getpagesize.c Tue Apr 19 22:59:21 2016 (r298303) @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); int getpagesize(void) { - int mib[2]; + int mib[2]; static int value; size_t size; int error; @@ -68,7 +68,7 @@ getpagesize(void) mib[0] = CTL_HW; mib[1] = HW_PAGESIZE; size = sizeof value; - if (sysctl(mib, 2, &value, &size, NULL, 0) == -1) + if (sysctl(mib, nitems(mib), &value, &size, NULL, 0) == -1) return (-1); return (value); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"