Fix oversight in last change.

This commit is contained in:
mycroft 1994-09-19 23:46:29 +00:00
parent cb0453c424
commit 1ac05a7acc

View File

@ -41,14 +41,15 @@ static char sccsid[] = "@(#)getpagesize.c 8.1 (Berkeley) 6/4/93";
int
getpagesize()
{
static int pagsz;
int mib[2];
size_t size;
static int pagsz;
if (pagsz == 0) {
int mib[2];
size_t size;
mib[0] = CTL_HW;
mib[1] = HW_PAGESIZE;
size = sizeof value;
size = sizeof pagsz;
if (sysctl(mib, 2, &pagsz, &size, NULL, 0) == -1)
return (-1);
}