From 5304f91e7a86ea60887891e21becc6820ad2b40b Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 4 Jun 2005 04:40:57 +0000 Subject: [PATCH] Add const. --- 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(-) diff --git a/sys/arch/sparc/dev/cgsix_obio.c b/sys/arch/sparc/dev/cgsix_obio.c index 92fb41cba5eb..de6368126afe 100644 --- a/sys/arch/sparc/dev/cgsix_obio.c +++ b/sys/arch/sparc/dev/cgsix_obio.c @@ -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 -__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 #include @@ -127,7 +127,7 @@ cgsixattach(parent, self, aux) struct fbdevice *fb = &sc->sc_fb; bus_space_handle_t bh; int constype, isconsole; - char *name; + const char *name; oba = &uoba->uoba_oba4; diff --git a/sys/arch/sparc/dev/sbus.c b/sys/arch/sparc/dev/sbus.c index f40247d5bdeb..ffd27f0e6814 100644 --- a/sys/arch/sparc/dev/sbus.c +++ b/sys/arch/sparc/dev/sbus.c @@ -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 -__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 #include @@ -366,7 +366,7 @@ sbus_attach_xbox(parent, self, aux) void sbus_attach_common(sc, busname, busnode, specials) struct sbus_softc *sc; - char *busname; + const char *busname; int busnode; const char * const *specials; { diff --git a/sys/arch/sparc/sparc/iommuvar.h b/sys/arch/sparc/sparc/iommuvar.h index 8484613929f9..d98335d5b9db 100644 --- a/sys/arch/sparc/sparc/iommuvar.h +++ b/sys/arch/sparc/sparc/iommuvar.h @@ -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 --git a/sys/dev/sbus/cgsix_sbus.c b/sys/dev/sbus/cgsix_sbus.c index 90028000b6dc..25447bb8975d 100644 --- a/sys/dev/sbus/cgsix_sbus.c +++ b/sys/dev/sbus/cgsix_sbus.c @@ -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 -__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 #include @@ -111,7 +111,7 @@ cgsixattach(parent, self, aux) 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 --git a/sys/dev/sbus/sbusvar.h b/sys/dev/sbus/sbusvar.h index eb5fff32d528..c4e0108eb156 100644 --- a/sys/dev/sbus/sbusvar.h +++ b/sys/dev/sbus/sbusvar.h @@ -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 @@ struct sbus_attach_args { }; /* 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 --git a/sys/dev/sbus/xboxvar.h b/sys/dev/sbus/xboxvar.h index a8f60faecebd..36f254da2236 100644 --- a/sys/dev/sbus/xboxvar.h +++ b/sys/dev/sbus/xboxvar.h @@ -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 --git a/sys/dev/sun/cgsix.c b/sys/dev/sun/cgsix.c index 8b419536242f..45ac8ce1628d 100644 --- a/sys/dev/sun/cgsix.c +++ b/sys/dev/sun/cgsix.c @@ -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 -__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 #include @@ -613,7 +613,7 @@ cg6_ras_do_cursor(struct rasops_info *ri) #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 --git a/sys/dev/sun/cgsixvar.h b/sys/dev/sun/cgsixvar.h index fe93eca9ce11..d987772c94a5 100644 --- a/sys/dev/sun/cgsixvar.h +++ b/sys/dev/sun/cgsixvar.h @@ -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 @@ extern int cgsix_use_rasterconsole; #define cgsix_use_rasterconsole 0 #endif -void cg6attach(struct cgsix_softc *, char *, int); +void cg6attach(struct cgsix_softc *, const char *, int);