Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/dev Add const.



details:   https://anonhg.NetBSD.org/src/rev/c7bada30b215
branches:  trunk
changeset: 581570:c7bada30b215
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Jun 02 16:25:02 2005 +0000

description:
Add const.

diffstat:

 sys/arch/hp300/dev/ct.c    |  6 +++---
 sys/arch/hp300/dev/mt.c    |  6 +++---
 sys/arch/hp300/dev/rdvar.h |  4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r fbeafea912c3 -r c7bada30b215 sys/arch/hp300/dev/ct.c
--- a/sys/arch/hp300/dev/ct.c   Thu Jun 02 16:00:16 2005 +0000
+++ b/sys/arch/hp300/dev/ct.c   Thu Jun 02 16:25:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ct.c,v 1.41 2005/03/14 12:50:33 tsutsui Exp $  */
+/*     $NetBSD: ct.c,v 1.42 2005/06/02 16:25:02 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.41 2005/03/14 12:50:33 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ct.c,v 1.42 2005/06/02 16:25:02 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -186,7 +186,7 @@
 static const struct ctinfo {
        short   hwid;
        short   punit;
-       char    *desc;
+       const char *desc;
 } ctinfo[] = {
        { CT7946ID,     1,      "7946A" },
        { CT7912PID,    1,      "7912P" },
diff -r fbeafea912c3 -r c7bada30b215 sys/arch/hp300/dev/mt.c
--- a/sys/arch/hp300/dev/mt.c   Thu Jun 02 16:00:16 2005 +0000
+++ b/sys/arch/hp300/dev/mt.c   Thu Jun 02 16:25:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mt.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $  */
+/*     $NetBSD: mt.c,v 1.29 2005/06/02 16:25:02 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.28 2005/02/19 16:31:49 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mt.c,v 1.29 2005/06/02 16:25:02 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -94,7 +94,7 @@
 
 static const struct mtinfo {
        u_short hwid;
-       char    *desc;
+       const char *desc;
 } mtinfo[] = {
        { MT7978ID,     "7978"  },
        { MT7979AID,    "7979A" },
diff -r fbeafea912c3 -r c7bada30b215 sys/arch/hp300/dev/rdvar.h
--- a/sys/arch/hp300/dev/rdvar.h        Thu Jun 02 16:00:16 2005 +0000
+++ b/sys/arch/hp300/dev/rdvar.h        Thu Jun 02 16:25:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rdvar.h,v 1.14 2004/08/28 17:45:24 thorpej Exp $       */
+/*     $NetBSD: rdvar.h,v 1.15 2005/06/02 16:25:02 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1982, 1990, 1993
@@ -81,7 +81,7 @@
 struct rdidentinfo {
        short   ri_hwid;                /* 2 byte HW id */
        short   ri_maxunum;             /* maximum allowed unit number */
-       char    *ri_desc;               /* drive type description */
+       const char *ri_desc;            /* drive type description */
        int     ri_nbpt;                /* DEV_BSIZE blocks per track */
        int     ri_ntpc;                /* tracks per cylinder */
        int     ri_ncyl;                /* cylinders per unit */



Home | Main Index | Thread Index | Old Index