Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3/dev A little constification



details:   https://anonhg.NetBSD.org/src/rev/dce507be984f
branches:  trunk
changeset: 780554:dce507be984f
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Jul 29 00:07:53 2012 +0000

description:
A little constification

diffstat:

 sys/arch/sun3/dev/zs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 7612130b521c -r dce507be984f sys/arch/sun3/dev/zs.c
--- a/sys/arch/sun3/dev/zs.c    Sun Jul 29 00:07:06 2012 +0000
+++ b/sys/arch/sun3/dev/zs.c    Sun Jul 29 00:07:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.86 2011/10/26 00:56:59 mrg Exp $      */
+/*     $NetBSD: zs.c,v 1.87 2012/07/29 00:07:53 matt Exp $     */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.86 2011/10/26 00:56:59 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.87 2012/07/29 00:07:53 matt Exp $");
 
 #include "opt_kgdb.h"
 
@@ -714,7 +714,7 @@
 
 extern struct consdev consdev_kd;
 
-static struct {
+static const struct {
        int zs_unit, channel;
 } zstty_conf[NZS*2] = {
        /* XXX: knowledge from the config file here... */
@@ -724,7 +724,7 @@
        { 0, 1 },       /* ttyd */
 };
 
-static const char *prom_inSrc_name[] = {
+static const char * const prom_inSrc_name[] = {
        "keyboard/display",
        "ttya", "ttyb",
        "ttyc", "ttyd" };



Home | Main Index | Thread Index | Old Index