Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 use __arraycount
details: https://anonhg.NetBSD.org/src/rev/ee38113f16f6
branches: trunk
changeset: 756563:ee38113f16f6
user: cegger <cegger%NetBSD.org@localhost>
date: Fri Jul 23 22:31:35 2010 +0000
description:
use __arraycount
diffstat:
sys/arch/x86/x86/errata.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 488ba67ce674 -r ee38113f16f6 sys/arch/x86/x86/errata.c
--- a/sys/arch/x86/x86/errata.c Fri Jul 23 20:04:52 2010 +0000
+++ b/sys/arch/x86/x86/errata.c Fri Jul 23 22:31:35 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: errata.c,v 1.18 2008/05/25 15:52:07 chris Exp $ */
+/* $NetBSD: errata.c,v 1.19 2010/07/23 22:31:35 cegger Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.18 2008/05/25 15:52:07 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: errata.c,v 1.19 2010/07/23 22:31:35 cegger Exp $");
#include <sys/types.h>
#include <sys/systm.h>
@@ -326,7 +326,7 @@
break;
}
- ex = errata + sizeof(errata) / sizeof(errata[0]);
+ ex = errata + __arraycount(errata);
for (upgrade = 0, e = errata; e < ex; e++) {
if (e->e_reported)
continue;
Home |
Main Index |
Thread Index |
Old Index