From b35e92d8873d698cd339e22faaf02483b9937c8b Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Mon, 7 Jun 2010 08:23:59 +0000 Subject: space nit and use nitems(). ok kettenis@ --- sys/arch/amd64/amd64/fpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') 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]); } -- cgit v1.2.3