diff --git a/sys/kern/kern_uidinfo.c b/sys/kern/kern_uidinfo.c index 03de51d565b9..add589eca27d 100644 --- a/sys/kern/kern_uidinfo.c +++ b/sys/kern/kern_uidinfo.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_uidinfo.c,v 1.4 2009/01/11 02:45:52 christos Exp $ */ +/* $NetBSD: kern_uidinfo.c,v 1.5 2009/03/22 00:49:13 ad Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.4 2009/01/11 02:45:52 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.5 2009/03/22 00:49:13 ad Exp $"); #include #include @@ -43,6 +43,7 @@ __KERNEL_RCSID(0, "$NetBSD: kern_uidinfo.c,v 1.4 2009/01/11 02:45:52 christos Ex #include #include #include +#include static SLIST_HEAD(uihashhead, uidinfo) *uihashtbl; static u_long uihash; @@ -58,7 +59,7 @@ uid_init(void) * write-back for every modified 'uidinfo', thus we try to keep the * lists short. */ - const u_int uihash_sz = (maxproc > 1 ? 1024 : 64); + const u_int uihash_sz = (maxcpus > 1 ? 1024 : 64); uihashtbl = hashinit(uihash_sz, HASH_SLIST, true, &uihash);