From efd32026ab909d77446268cfad56c818b772f7b7 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Wed, 21 Feb 2001 22:52:03 +0000 Subject: [PATCH] make default_consinfo and kgdb_devname[] const --- sys/arch/i386/i386/consinit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/i386/consinit.c b/sys/arch/i386/i386/consinit.c index 34ba243c81c5..c9a666d86a9d 100644 --- a/sys/arch/i386/i386/consinit.c +++ b/sys/arch/i386/i386/consinit.c @@ -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 @@ struct btinfo_console default_consinfo = { #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 @@ int comkgdbmode = KGDBMODE; void consinit() { - struct btinfo_console *consinfo; + const struct btinfo_console *consinfo; static int initted; if (initted)