Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips constify.
details: https://anonhg.NetBSD.org/src/rev/feee27797540
branches: trunk
changeset: 581649:feee27797540
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 13:44:50 2005 +0000
description:
constify.
diffstat:
sys/arch/newsmips/apbus/apbus.c | 6 +++---
sys/arch/newsmips/apbus/apbusvar.h | 5 +++--
sys/arch/newsmips/dev/fb.c | 6 +++---
sys/arch/newsmips/newsmips/disksubr.c | 6 +++---
4 files changed, 12 insertions(+), 11 deletions(-)
diffs (100 lines):
diff -r bb5d43fc1a31 -r feee27797540 sys/arch/newsmips/apbus/apbus.c
--- a/sys/arch/newsmips/apbus/apbus.c Fri Jun 03 13:44:11 2005 +0000
+++ b/sys/arch/newsmips/apbus/apbus.c Fri Jun 03 13:44:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apbus.c,v 1.18 2005/02/06 02:18:02 tsutsui Exp $ */
+/* $NetBSD: apbus.c,v 1.19 2005/06/03 13:44:50 tsutsui Exp $ */
/*-
* Copyright (C) 1999 SHIMIZU Ryo. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.18 2005/02/06 02:18:02 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apbus.c,v 1.19 2005/06/03 13:44:50 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -211,7 +211,7 @@
*/
void *
apbus_intr_establish(int level, int mask, int priority, int (*func)(void *),
- void *arg, char *name, int ctlno)
+ void *arg, const char *name, int ctlno)
{
struct newsmips_intr *ip;
struct newsmips_intrhand *ih, *curih;
diff -r bb5d43fc1a31 -r feee27797540 sys/arch/newsmips/apbus/apbusvar.h
--- a/sys/arch/newsmips/apbus/apbusvar.h Fri Jun 03 13:44:11 2005 +0000
+++ b/sys/arch/newsmips/apbus/apbusvar.h Fri Jun 03 13:44:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apbusvar.h,v 1.5 2005/02/06 02:18:02 tsutsui Exp $ */
+/* $NetBSD: apbusvar.h,v 1.6 2005/06/03 13:44:50 tsutsui Exp $ */
/*-
* Copyright (C) 1999 SHIMIZU Ryo. All rights reserved.
@@ -44,7 +44,8 @@
void apdevice_dump(struct apbus_dev *);
void apbus_intr_init(void);
int apbus_intr_dispatch(int, int);
-void *apbus_intr_establish(int, int, int, int (*)(void *), void *, char *, int);
+void *apbus_intr_establish(int, int, int, int (*)(void *), void *,
+ const char *, int);
struct newsmips_bus_dma_tag *apbus_dmatag_init(struct apbus_attach_args *);
#define SLOTTOMASK(slot) ((slot) ? (0x0100 << ((slot) - 1)) : 0)
diff -r bb5d43fc1a31 -r feee27797540 sys/arch/newsmips/dev/fb.c
--- a/sys/arch/newsmips/dev/fb.c Fri Jun 03 13:44:11 2005 +0000
+++ b/sys/arch/newsmips/dev/fb.c Fri Jun 03 13:44:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fb.c,v 1.19 2005/02/06 02:18:02 tsutsui Exp $ */
+/* $NetBSD: fb.c,v 1.20 2005/06/03 13:44:50 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari. All rights reserved.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.19 2005/02/06 02:18:02 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.20 2005/06/03 13:44:50 tsutsui Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -107,7 +107,7 @@
#define NWB253_CTLREG ((u_short *)0xb8ff0000)
#define NWB253_CRTREG ((u_short *)0xb8fe0000)
-static char *devname[8] = { "NWB-512", "NWB-518", "NWE-501" }; /* XXX ? */
+static const char *devname[8] = { "NWB-512", "NWB-518", "NWE-501" }; /* XXX ? */
int
fb_match(struct device *parent, struct cfdata *match, void *aux)
diff -r bb5d43fc1a31 -r feee27797540 sys/arch/newsmips/newsmips/disksubr.c
--- a/sys/arch/newsmips/newsmips/disksubr.c Fri Jun 03 13:44:11 2005 +0000
+++ b/sys/arch/newsmips/newsmips/disksubr.c Fri Jun 03 13:44:50 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.18 2005/05/25 12:47:24 tsutsui Exp $ */
+/* $NetBSD: disksubr.c,v 1.19 2005/06/03 13:44:50 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.18 2005/05/25 12:47:24 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.19 2005/06/03 13:44:50 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -55,7 +55,7 @@
{
struct buf *bp;
struct disklabel *dlp;
- char *msg = NULL;
+ const char *msg = NULL;
int i;
if (lp->d_secsize == 0)
Home |
Main Index |
Thread Index |
Old Index