Source-Changes-HG archive

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

[src/trunk]: src/sys Add const.



details:   https://anonhg.NetBSD.org/src/rev/2288b9bd3ef8
branches:  trunk
changeset: 581724:2288b9bd3ef8
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 04 04:40:57 2005 +0000

description:
Add const.

diffstat:

 sys/arch/sparc/dev/cgsix_obio.c |  6 +++---
 sys/arch/sparc/dev/sbus.c       |  6 +++---
 sys/arch/sparc/sparc/iommuvar.h |  4 ++--
 sys/dev/sbus/cgsix_sbus.c       |  6 +++---
 sys/dev/sbus/sbusvar.h          |  4 ++--
 sys/dev/sbus/xboxvar.h          |  4 ++--
 sys/dev/sun/cgsix.c             |  6 +++---
 sys/dev/sun/cgsixvar.h          |  4 ++--
 8 files changed, 20 insertions(+), 20 deletions(-)

diffs (177 lines):

diff -r ca96b9120108 -r 2288b9bd3ef8 sys/arch/sparc/dev/cgsix_obio.c
--- a/sys/arch/sparc/dev/cgsix_obio.c   Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/arch/sparc/dev/cgsix_obio.c   Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix_obio.c,v 1.15 2005/06/04 04:39:34 tsutsui Exp $ */
+/*     $NetBSD: cgsix_obio.c,v 1.16 2005/06/04 04:41:40 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.15 2005/06/04 04:39:34 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix_obio.c,v 1.16 2005/06/04 04:41:40 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -127,7 +127,7 @@
        struct fbdevice *fb = &sc->sc_fb;
        bus_space_handle_t bh;
        int constype, isconsole;
-       char *name;
+       const char *name;
 
        oba = &uoba->uoba_oba4;
 
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/arch/sparc/dev/sbus.c
--- a/sys/arch/sparc/dev/sbus.c Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/arch/sparc/dev/sbus.c Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbus.c,v 1.63 2004/12/13 02:39:07 chs Exp $ */
+/*     $NetBSD: sbus.c,v 1.64 2005/06/04 04:40:57 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -81,7 +81,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.63 2004/12/13 02:39:07 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbus.c,v 1.64 2005/06/04 04:40:57 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/malloc.h>
@@ -366,7 +366,7 @@
 void
 sbus_attach_common(sc, busname, busnode, specials)
        struct sbus_softc *sc;
-       char *busname;
+       const char *busname;
        int busnode;
        const char * const *specials;
 {
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/arch/sparc/sparc/iommuvar.h
--- a/sys/arch/sparc/sparc/iommuvar.h   Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/arch/sparc/sparc/iommuvar.h   Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iommuvar.h,v 1.7 2002/08/25 16:02:54 thorpej Exp $     */
+/*     $NetBSD: iommuvar.h,v 1.8 2005/06/04 04:40:57 tsutsui Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
 struct iommu_attach_args {
        bus_space_tag_t iom_bustag;
        bus_dma_tag_t   iom_dmatag;
-       char            *iom_name;      /* PROM node name */
+       const char      *iom_name;      /* PROM node name */
         int            iom_node;       /* PROM handle */
        struct openprom_addr *iom_reg;
        int             iom_nreg;
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/dev/sbus/cgsix_sbus.c
--- a/sys/dev/sbus/cgsix_sbus.c Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/dev/sbus/cgsix_sbus.c Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix_sbus.c,v 1.16 2005/05/16 14:29:11 macallan Exp $ */
+/*     $NetBSD: cgsix_sbus.c,v 1.17 2005/06/04 04:41:40 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.16 2005/05/16 14:29:11 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix_sbus.c,v 1.17 2005/06/04 04:41:40 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -111,7 +111,7 @@
        struct sbus_attach_args *sa = aux;
        struct fbdevice *fb = &sc->sc_fb;
        int node, isconsole;
-       char *name;
+       const char *name;
        bus_space_handle_t bh;
 
        /* Remember cookies for cgsix_mmap() */
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/dev/sbus/sbusvar.h
--- a/sys/dev/sbus/sbusvar.h    Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/dev/sbus/sbusvar.h    Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbusvar.h,v 1.22 2005/02/27 00:27:48 perry Exp $ */
+/*     $NetBSD: sbusvar.h,v 1.23 2005/06/04 04:40:57 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
 };
 
 /* sbus_attach_internal() is also used from obio.c */
-void   sbus_attach_common(struct sbus_softc *, char *, int,
+void   sbus_attach_common(struct sbus_softc *, const char *, int,
                                const char * const *);
 int    sbus_print(void *, const char *);
 
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/dev/sbus/xboxvar.h
--- a/sys/dev/sbus/xboxvar.h    Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/dev/sbus/xboxvar.h    Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xboxvar.h,v 1.2 2000/01/11 12:59:44 pk Exp $ */
+/*     $NetBSD: xboxvar.h,v 1.3 2005/06/04 04:40:57 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
 struct xbox_attach_args {
        bus_space_tag_t xa_bustag;
        bus_dma_tag_t   xa_dmatag;
-       char            *xa_name;       /* PROM node name */
+       const char      *xa_name;       /* PROM node name */
        int             xa_node;        /* PROM handle */
 };
 #endif /* _XBOX_VAR_H */
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c       Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/dev/sun/cgsix.c       Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix.c,v 1.24 2005/05/22 03:45:08 macallan Exp $ */
+/*     $NetBSD: cgsix.c,v 1.25 2005/06/04 04:41:40 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.24 2005/05/22 03:45:08 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.25 2005/06/04 04:41:40 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -613,7 +613,7 @@
 #endif /* (NWSDISPLAY > 0) || defined(RASTERCONSOLE) */
 
 void
-cg6attach(struct cgsix_softc *sc, char *name, int isconsole)
+cg6attach(struct cgsix_softc *sc, const char *name, int isconsole)
 {
        struct fbdevice *fb = &sc->sc_fb;
 #if NWSDISPLAY > 0
diff -r ca96b9120108 -r 2288b9bd3ef8 sys/dev/sun/cgsixvar.h
--- a/sys/dev/sun/cgsixvar.h    Sat Jun 04 04:39:34 2005 +0000
+++ b/sys/dev/sun/cgsixvar.h    Sat Jun 04 04:40:57 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsixvar.h,v 1.5 2005/05/16 14:29:11 macallan Exp $ */
+/*     $NetBSD: cgsixvar.h,v 1.6 2005/06/04 04:41:40 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -109,4 +109,4 @@
 #define cgsix_use_rasterconsole 0
 #endif
 
-void   cg6attach(struct cgsix_softc *, char *, int);
+void   cg6attach(struct cgsix_softc *, const char *, int);



Home | Main Index | Thread Index | Old Index