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 Declare trap name array as extern const c...



details:   https://anonhg.NetBSD.org/src/rev/75d80b2da3c2
branches:  trunk
changeset: 749051:75d80b2da3c2
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Nov 15 18:17:18 2009 +0000

description:
Declare trap name array as extern const char *[] to match how it's defined
in trap.c. (Should really be in a header, of course.) Compile-tested.

diffstat:

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

diffs (27 lines):

diff -r b3f6562b167b -r 75d80b2da3c2 sys/arch/hppa/hppa/db_interface.c
--- a/sys/arch/hppa/hppa/db_interface.c Sun Nov 15 17:42:24 2009 +0000
+++ b/sys/arch/hppa/hppa/db_interface.c Sun Nov 15 18:17:18 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.18 2009/11/03 05:07:26 snj Exp $    */
+/*     $NetBSD: db_interface.c,v 1.19 2009/11/15 18:17:18 dholland Exp $       */
 
 /*     $OpenBSD: db_interface.c,v 1.16 2001/03/22 23:31:45 mickey Exp $        */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.18 2009/11/03 05:07:26 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.19 2009/11/15 18:17:18 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,7 @@
 
 extern label_t *db_recover;
 extern int db_active;
-extern char *trap_type[];
+extern const char *trap_type[];
 extern int trap_types;
 
 db_regs_t      ddb_regs;



Home | Main Index | Thread Index | Old Index