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 make default_consinfo and kgdb_devname[] ...



details:   https://anonhg.NetBSD.org/src/rev/b908301ffa1e
branches:  trunk
changeset: 504102:b908301ffa1e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Feb 21 22:52:03 2001 +0000

description:
make default_consinfo and kgdb_devname[] const

diffstat:

 sys/arch/i386/i386/consinit.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 507c494610c3 -r b908301ffa1e sys/arch/i386/i386/consinit.c
--- a/sys/arch/i386/i386/consinit.c     Wed Feb 21 21:39:52 2001 +0000
+++ b/sys/arch/i386/i386/consinit.c     Wed Feb 21 22:52:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: consinit.c,v 1.4 2000/06/11 02:46:29 mycroft Exp $     */
+/*     $NetBSD: consinit.c,v 1.5 2001/02/21 22:52:03 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1998
@@ -87,7 +87,7 @@
 int comcnmode = CONMODE;
 #endif /* NCOM */
 
-struct btinfo_console default_consinfo = {
+const struct btinfo_console default_consinfo = {
        {0, 0},
        CONSDEVNAME,
 #if (NCOM > 0)
@@ -101,7 +101,7 @@
 #ifndef KGDB_DEVNAME
 #define KGDB_DEVNAME "com"
 #endif
-char kgdb_devname[] = KGDB_DEVNAME;
+const char kgdb_devname[] = KGDB_DEVNAME;
 
 #if (NCOM > 0)
 #ifndef KGDBADDR
@@ -129,7 +129,7 @@
 void
 consinit()
 {
-       struct btinfo_console *consinfo;
+       const struct btinfo_console *consinfo;
        static int initted;
 
        if (initted)



Home | Main Index | Thread Index | Old Index