Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hppa/hppa Use __arraycount



details:   https://anonhg.NetBSD.org/src/rev/12e9d373fe79
branches:  trunk
changeset: 751984:12e9d373fe79
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Feb 10 17:00:45 2010 +0000

description:
Use __arraycount

diffstat:

 sys/arch/hppa/hppa/trap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 619094c42973 -r 12e9d373fe79 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Wed Feb 10 14:48:26 2010 +0000
+++ b/sys/arch/hppa/hppa/trap.c Wed Feb 10 17:00:45 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.71 2010/01/17 08:50:04 skrll Exp $  */
+/*     $NetBSD: trap.c,v 1.72 2010/02/10 17:00:45 skrll Exp $  */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.71 2010/01/17 08:50:04 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.72 2010/02/10 17:00:45 skrll Exp $");
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -161,7 +161,7 @@
        "data protection",
        "unaligned data ref",
 };
-int trap_types = sizeof(trap_type)/sizeof(trap_type[0]);
+int trap_types = __arraycount(trap_type);
 
 uint8_t fpopmap[] = {
        0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00,



Home | Main Index | Thread Index | Old Index