constify.

This commit is contained in:
tsutsui 2005-06-03 13:44:50 +00:00
parent 7e31a175ec
commit faf821f5c5
4 changed files with 12 additions and 11 deletions

View File

@ -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 @@ apbus_intr_dispatch(int level, int stat)
*/
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;

View File

@ -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 @@ struct apbus_dev *apbus_lookupdev(char *);
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)

View File

@ -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 @@ struct wsscreen_list fb_screenlist = {
#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)

View File

@ -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 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
{
struct buf *bp;
struct disklabel *dlp;
char *msg = NULL;
const char *msg = NULL;
int i;
if (lp->d_secsize == 0)