Adapt to -Wcast-qual by adding a few consts.
This commit is contained in:
parent
0c68b63d19
commit
ed9b489c17
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nextdma.c,v 1.37 2005/01/19 01:58:21 chs Exp $ */
|
||||
/* $NetBSD: nextdma.c,v 1.38 2005/06/05 11:35:09 he Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
* All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: nextdma.c,v 1.37 2005/01/19 01:58:21 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: nextdma.c,v 1.38 2005/06/05 11:35:09 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -135,7 +135,7 @@ static int nnextdma_channels = (sizeof(nextdma_channel)/sizeof(nextdma_channel[0
|
|||
static int attached = 0;
|
||||
|
||||
struct nextdma_softc *
|
||||
nextdma_findchannel(char *name)
|
||||
nextdma_findchannel(const char *name)
|
||||
{
|
||||
struct device *dev = TAILQ_FIRST(&alldevs);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nextdmavar.h,v 1.12 2005/01/19 01:58:21 chs Exp $ */
|
||||
/* $NetBSD: nextdmavar.h,v 1.13 2005/06/05 11:35:09 he Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998 Darrin B. Jewell
|
||||
* All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
|
||||
|
||||
struct nextdma_channel {
|
||||
char *nd_name;
|
||||
const char *nd_name;
|
||||
int nd_base;
|
||||
int nd_size;
|
||||
u_long nd_intr;
|
||||
|
@ -81,4 +81,4 @@ void nextdma_reset(struct nextdma_softc *);
|
|||
|
||||
void nextdma_print(struct nextdma_softc *);
|
||||
|
||||
struct nextdma_softc *nextdma_findchannel(char *);
|
||||
struct nextdma_softc *nextdma_findchannel(const char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.16 2005/01/19 01:58:21 chs Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.17 2005/06/05 11:35:09 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -85,7 +85,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2005/01/19 01:58:21 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.17 2005/06/05 11:35:09 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -108,13 +108,13 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.16 2005/01/19 01:58:21 chs Exp $");
|
|||
volatile u_long *intrstat;
|
||||
volatile u_long *intrmask;
|
||||
|
||||
static struct device *getdevunit(char *, int);
|
||||
static struct device *getdevunit(const char *, int);
|
||||
static int devidentparse(const char *, int *, int *, int *);
|
||||
static int atoi(const char *);
|
||||
|
||||
struct device_equiv {
|
||||
char *alias;
|
||||
char *real;
|
||||
const char *alias;
|
||||
const char *real;
|
||||
};
|
||||
static struct device_equiv device_equiv[] = {
|
||||
{ "en", "xe" },
|
||||
|
@ -188,7 +188,7 @@ cpu_rootconf(void)
|
|||
* find a device matching "name" and unit number
|
||||
*/
|
||||
static struct device *
|
||||
getdevunit(char *name, int unit)
|
||||
getdevunit(const char *name, int unit)
|
||||
{
|
||||
struct device *dev = alldevs.tqh_first;
|
||||
char num[10], fullname[16];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disksubr.c,v 1.17 2005/01/19 01:58:21 chs Exp $ */
|
||||
/* $NetBSD: disksubr.c,v 1.18 2005/06/05 11:35:09 he Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.17 2005/01/19 01:58:21 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.18 2005/06/05 11:35:09 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -54,7 +54,7 @@ __KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.17 2005/01/19 01:58:21 chs Exp $");
|
|||
#define b_cylinder b_resid
|
||||
|
||||
static unsigned short nextstep_checksum(unsigned char *, unsigned char *);
|
||||
static char *parse_nextstep_label(struct next68k_disklabel *,
|
||||
static const char *parse_nextstep_label(struct next68k_disklabel *,
|
||||
struct disklabel *, struct cpu_disklabel *);
|
||||
static int build_nextstep_label(struct next68k_disklabel *, struct disklabel *);
|
||||
|
||||
|
@ -73,7 +73,7 @@ nextstep_checksum(buf, limit)
|
|||
return (sum & 0xffff);
|
||||
}
|
||||
|
||||
static char *
|
||||
static const char *
|
||||
parse_nextstep_label(ondisk, lp, osdep)
|
||||
struct next68k_disklabel *ondisk;
|
||||
struct disklabel *lp;
|
||||
|
@ -325,7 +325,7 @@ readdisklabel(dev, strat, lp, osdep)
|
|||
{
|
||||
struct buf *bp;
|
||||
struct disklabel *dlp;
|
||||
char *msg = NULL;
|
||||
const char *msg = NULL;
|
||||
int i;
|
||||
|
||||
/* minimal requirements for archtypal disk label */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.53 2005/01/19 01:58:21 chs Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.54 2005/06/05 11:35:09 he Exp $ */
|
||||
|
||||
/*
|
||||
* This file was taken from mvme68k/mvme68k/trap.c
|
||||
|
@ -84,7 +84,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.53 2005/01/19 01:58:21 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.54 2005/06/05 11:35:09 he Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_execfmt.h"
|
||||
|
@ -145,7 +145,7 @@ static inline void userret(struct lwp *, struct frame *, u_quad_t, u_int, int);
|
|||
|
||||
int astpending;
|
||||
|
||||
char *trap_type[] = {
|
||||
const char *trap_type[] = {
|
||||
"Bus error",
|
||||
"Address error",
|
||||
"Illegal instruction",
|
||||
|
@ -754,11 +754,11 @@ struct writebackstats {
|
|||
int wbsize[4];
|
||||
} wbstats;
|
||||
|
||||
char *f7sz[] = { "longword", "byte", "word", "line" };
|
||||
char *f7tt[] = { "normal", "MOVE16", "AFC", "ACK" };
|
||||
char *f7tm[] = { "d-push", "u-data", "u-code", "M-data",
|
||||
const char *f7sz[] = { "longword", "byte", "word", "line" };
|
||||
const char *f7tt[] = { "normal", "MOVE16", "AFC", "ACK" };
|
||||
const char *f7tm[] = { "d-push", "u-data", "u-code", "M-data",
|
||||
"M-code", "k-data", "k-code", "RES" };
|
||||
char wberrstr[] =
|
||||
const char wberrstr[] =
|
||||
"WARNING: pid %d(%s) writeback [%s] failed, pc=%x fa=%x wba=%x wbd=%x\n";
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue