Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 constify trap_type[]



details:   https://anonhg.NetBSD.org/src/rev/86a8cfad6414
branches:  trunk
changeset: 538837:86a8cfad6414
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Oct 31 22:32:40 2002 +0000

description:
constify trap_type[]

diffstat:

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

diffs (27 lines):

diff -r cab61a19a6d4 -r 86a8cfad6414 sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Thu Oct 31 22:24:42 2002 +0000
+++ b/sys/arch/i386/i386/trap.c Thu Oct 31 22:32:40 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.172 2002/10/31 22:24:42 jdolecek Exp $      */
+/*     $NetBSD: trap.c,v 1.173 2002/10/31 22:32:40 jdolecek Exp $      */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.172 2002/10/31 22:24:42 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.173 2002/10/31 22:32:40 jdolecek Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -140,7 +140,7 @@
 #define KVM86MODE (0)
 #endif
 
-const char *trap_type[] = {
+const char * const trap_type[] = {
        "privileged instruction fault",         /*  0 T_PRIVINFLT */
        "breakpoint trap",                      /*  1 T_BPTFLT */
        "arithmetic trap",                      /*  2 T_ARITHTRAP */



Home | Main Index | Thread Index | Old Index