diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 20:48:24 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-09-25 20:48:24 +0000 |
commit | 56105db4443c9fe5708cf92279632c9410d5ba0a (patch) | |
tree | 6a7fe29740543bd1c5e7b22c5d20722853a674c0 /sys/arch/i386/include/cpu.h | |
parent | 808a8304af96b11cd244b87ac335a3a6ee7c2ced (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/i386/include/cpu.h')
-rw-r--r-- | sys/arch/i386/include/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 156c7268ed9..6b963f4dbeb 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.70 2005/09/20 23:00:34 deraadt Exp $ */ +/* $OpenBSD: cpu.h,v 1.71 2005/09/25 20:48:23 miod Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -167,8 +167,8 @@ extern struct cpu_info cpu_info_primary; extern struct cpu_info *cpu_info_list; #define CPU_INFO_ITERATOR int -#define CPU_INFO_FOREACH(cii, ci) cii = 0, ci = cpu_info_list; \ - ci != NULL; ci = ci->ci_next +#define CPU_INFO_FOREACH(cii, ci) for (cii = 0, ci = cpu_info_list; \ + ci != NULL; ci = ci->ci_next) #define CPU_INFO_UNIT(ci) ((ci)->ci_dev.dv_unit) |