summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-07 08:23:59 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2010-06-07 08:23:59 +0000
commitb35e92d8873d698cd339e22faaf02483b9937c8b (patch)
tree932cfe81e0911160164ef886550ae950d3ddbb4d /sys/arch/amd64
parent144130d33c244157eab27dc06eb834767fe23f44 (diff)
space nit and use nitems().
ok kettenis@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/fpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/fpu.c b/sys/arch/amd64/amd64/fpu.c
index e9a5c0f748b..e8deedcbba2 100644
--- a/sys/arch/amd64/amd64/fpu.c
+++ b/sys/arch/amd64/amd64/fpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fpu.c,v 1.14 2008/12/04 15:48:19 weingart Exp $ */
+/* $OpenBSD: fpu.c,v 1.15 2010/06/07 08:23:58 thib Exp $ */
/* $NetBSD: fpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */
/*-
@@ -170,7 +170,7 @@ x86fpflags_to_siginfo(u_int32_t flags)
FPE_FLTINV, /* bit 6 - stack fault */
};
- for (i=0;i < sizeof(x86fp_siginfo_table)/sizeof(int); i++) {
+ for (i = 0; i < nitems(x86fp_siginfo_table); i++) {
if (flags & (1 << i))
return (x86fp_siginfo_table[i]);
}