summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-09-25 20:48:24 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-09-25 20:48:24 +0000
commit56105db4443c9fe5708cf92279632c9410d5ba0a (patch)
tree6a7fe29740543bd1c5e7b22c5d20722853a674c0 /sys/arch/hppa64/include
parent808a8304af96b11cd244b87ac335a3a6ee7c2ced (diff)
Turn CPU_INFO_FOREACH into a real construct, like all queue(3) iterators,
instead of the contents of a for() loop. No functional change. From the m88k SMP tree; ok art@ deraadt@ [complete diff this time]
Diffstat (limited to 'sys/arch/hppa64/include')
-rw-r--r--sys/arch/hppa64/include/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa64/include/cpu.h b/sys/arch/hppa64/include/cpu.h
index a8d83bfdbbc..f8b6770b7cd 100644
--- a/sys/arch/hppa64/include/cpu.h
+++ b/sys/arch/hppa64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.7 2005/09/20 23:00:34 deraadt Exp $ */
+/* $OpenBSD: cpu.h,v 1.8 2005/09/25 20:48:21 miod Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -142,7 +142,7 @@ struct cpu_info *curcpu(void);
#define CPU_IS_PRIMARY(ci) ((ci)->ci_number == 0)
#define CPU_INFO_ITERATOR int
#define CPU_INFO_FOREACH(cii,ci) \
- cii = 0, ci = curcpu(); ci != NULL; ci = ci->ci_next
+ for (cii = 0, ci = curcpu(); ci != NULL; ci = ci->ci_next)
#define CPU_INFO_UNIT(ci) ((ci)->ci_number)
#ifdef DIAGNOSTIC