From 435d547a7c0f04b09dec85b4efcee9f267d708e2 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Sat, 4 Jun 2005 04:37:21 +0000 Subject: [PATCH] Add const. --- sys/dev/sbus/cgthree_sbus.c | 6 +++--- sys/dev/sun/cgthree.c | 6 +++--- sys/dev/sun/cgthreevar.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/sbus/cgthree_sbus.c b/sys/dev/sbus/cgthree_sbus.c index a59155a56282..3f59419d197c 100644 --- a/sys/dev/sbus/cgthree_sbus.c +++ b/sys/dev/sbus/cgthree_sbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgthree_sbus.c,v 1.14 2004/03/17 17:04:58 pk Exp $ */ +/* $NetBSD: cgthree_sbus.c,v 1.15 2005/06/04 04:37:21 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -85,7 +85,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.14 2004/03/17 17:04:58 pk Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgthree_sbus.c,v 1.15 2005/06/04 04:37:21 tsutsui Exp $"); #include #include @@ -152,7 +152,7 @@ cgthreeattach_sbus(parent, self, args) struct fbdevice *fb = &sc->sc_fb; int node = sa->sa_node; int isconsole; - char *name; + const char *name; bus_space_handle_t bh; /* Remember cookies for cgthree_mmap() */ diff --git a/sys/dev/sun/cgthree.c b/sys/dev/sun/cgthree.c index eaeef78758b5..e58be10a9653 100644 --- a/sys/dev/sun/cgthree.c +++ b/sys/dev/sun/cgthree.c @@ -1,4 +1,4 @@ -/* $NetBSD: cgthree.c,v 1.10 2003/08/25 17:50:30 uwe Exp $ */ +/* $NetBSD: cgthree.c,v 1.11 2005/06/04 04:37:21 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -45,7 +45,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.10 2003/08/25 17:50:30 uwe Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cgthree.c,v 1.11 2005/06/04 04:37:21 tsutsui Exp $"); #include #include @@ -108,7 +108,7 @@ struct cg3_videoctrl { void cgthreeattach(sc, name, isconsole) struct cgthree_softc *sc; - char *name; + const char *name; int isconsole; { int i; diff --git a/sys/dev/sun/cgthreevar.h b/sys/dev/sun/cgthreevar.h index aec5e9636fbd..fa04d592fd43 100644 --- a/sys/dev/sun/cgthreevar.h +++ b/sys/dev/sun/cgthreevar.h @@ -1,4 +1,4 @@ -/* $NetBSD: cgthreevar.h,v 1.2 2002/03/11 16:01:57 pk Exp $ */ +/* $NetBSD: cgthreevar.h,v 1.3 2005/06/04 04:37:21 tsutsui Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -51,4 +51,4 @@ struct cgthree_softc { union bt_cmap sc_cmap; /* Brooktree color map */ }; -void cgthreeattach(struct cgthree_softc *, char *, int); +void cgthreeattach(struct cgthree_softc *, const char *, int);