Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/mcbus Const poison.



details:   https://anonhg.NetBSD.org/src/rev/087f2691d8ff
branches:  trunk
changeset: 537087:087f2691d8ff
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 26 20:02:47 2002 +0000

description:
Const poison.

diffstat:

 sys/arch/alpha/mcbus/mcbus.c    |  6 +++---
 sys/arch/alpha/mcbus/mcbusvar.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 8e2a3afa420d -r 087f2691d8ff sys/arch/alpha/mcbus/mcbus.c
--- a/sys/arch/alpha/mcbus/mcbus.c      Thu Sep 26 19:04:59 2002 +0000
+++ b/sys/arch/alpha/mcbus/mcbus.c      Thu Sep 26 20:02:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcbus.c,v 1.8 2001/05/02 01:24:29 thorpej Exp $ */
+/* $NetBSD: mcbus.c,v 1.9 2002/09/26 20:02:47 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 by Matthew Jacob
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.8 2001/05/02 01:24:29 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.9 2002/09/26 20:02:47 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -142,7 +142,7 @@
        struct device *self;
        void *aux;
 {
-       static const char *bcs[CPU_BCacheMask + 1] = {
+       static const char * const bcs[CPU_BCacheMask + 1] = {
                "No", "1MB", "2MB", "4MB",
        };
        struct mcbus_dev_attach_args ta;
diff -r 8e2a3afa420d -r 087f2691d8ff sys/arch/alpha/mcbus/mcbusvar.h
--- a/sys/arch/alpha/mcbus/mcbusvar.h   Thu Sep 26 19:04:59 2002 +0000
+++ b/sys/arch/alpha/mcbus/mcbusvar.h   Thu Sep 26 20:02:47 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcbusvar.h,v 1.3 1999/04/15 22:19:52 thorpej Exp $ */
+/* $NetBSD: mcbusvar.h,v 1.4 2002/09/26 20:02:47 thorpej Exp $ */
 
 /*
  * Copyright (c) 1998 by Matthew Jacob
@@ -39,7 +39,7 @@
  * The structure used to attach devices to the MCbus.
  */
 struct mcbus_dev_attach_args {
-       char *          ma_name;        /* so things aren't confused */
+       const char *    ma_name;        /* so things aren't confused */
        u_int8_t        ma_gid;         /* GID of MCBUS (MCBUS #) */
        u_int8_t        ma_mid;         /* Module ID on MCBUS */
        u_int8_t        ma_type;        /* Module "type" */



Home | Main Index | Thread Index | Old Index