Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Declare trap name array as extern const...



details:   https://anonhg.NetBSD.org/src/rev/45eca8cd7a29
branches:  trunk
changeset: 749056:45eca8cd7a29
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Nov 15 18:41:31 2009 +0000

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

diffstat:

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

diffs (27 lines):

diff -r 9f72e68d06c0 -r 45eca8cd7a29 sys/arch/amd64/amd64/db_interface.c
--- a/sys/arch/amd64/amd64/db_interface.c       Sun Nov 15 18:41:08 2009 +0000
+++ b/sys/arch/amd64/amd64/db_interface.c       Sun Nov 15 18:41:31 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_interface.c,v 1.20 2009/01/29 13:52:20 joerg Exp $  */
+/*     $NetBSD: db_interface.c,v 1.21 2009/11/15 18:41:31 dholland Exp $       */
 
 /*
  * Mach Operating System
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.20 2009/01/29 13:52:20 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.21 2009/11/15 18:41:31 dholland Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -63,7 +63,7 @@
 #include <ddb/db_output.h>
 #include <ddb/ddbvar.h>
 
-extern const char *trap_type[];
+extern const char *const trap_type[];
 extern int trap_types;
 
 int    db_active;



Home | Main Index | Thread Index | Old Index