summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-20 23:01:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-20 23:01:07 +0000
commit8ec10aafe97eb6e76b394512c2e6b5d1cfcdc13d (patch)
tree61e7fcad601cbfea2788b9abdd78f07215d57713 /sys/kern/kern_sysctl.c
parentdab14b4db0846344b96d59b21fb17b0ba7f16df1 (diff)
unbreak tree, how did you do that miod
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 71671ff75b5..0457c18241c 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.129 2005/09/20 21:04:15 miod Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.130 2005/09/20 23:01:06 deraadt Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -460,7 +460,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
bzero(cp_time, sizeof(cp_time));
- CPU_INFO_FOREACH(cii, ci) {
+ for (CPU_INFO_FOREACH(cii, ci)) {
for (i = 0; i < CPUSTATES; i++)
cp_time[i] += ci->ci_schedstate.spc_cp_time[i];
}
@@ -1902,7 +1902,7 @@ sysctl_cptime2(int *name, u_int namelen, void *oldp, size_t *oldlenp,
i = name[0];
- CPU_INFO_FOREACH(cii, ci) {
+ for (CPU_INFO_FOREACH(cii, ci)) {
if (i-- == 0)
break;
}