Constify pointers to string constants.

This commit is contained in:
jandberg 2005-06-13 19:31:54 +00:00
parent 8a116ca5d3
commit dc6e239c32
3 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: disksubr.c,v 1.45 2003/08/07 16:26:37 agc Exp $ */
/* $NetBSD: disksubr.c,v 1.46 2005/06/13 19:31:54 jandberg Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.45 2003/08/07 16:26:37 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.46 2005/06/13 19:31:54 jandberg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -139,7 +139,8 @@ readdisklabel(dev, strat, lp, clp)
struct partblock *pbp;
struct rdblock *rbp;
struct buf *bp;
char *msg, *bcpls, *s, bcpli;
const char *msg;
char *bcpls, *s, bcpli;
int cindex, i, nopname;
u_long nextb;

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.191 2005/04/25 15:02:02 lukem Exp $ */
/* $NetBSD: machdep.c,v 1.192 2005/06/13 19:31:54 jandberg Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -85,7 +85,7 @@
#include "opt_panicbutton.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.191 2005/04/25 15:02:02 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.192 2005/06/13 19:31:54 jandberg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -198,7 +198,7 @@ extern int freebufspace;
extern u_int lowram;
/* used in init_main.c */
char *cpu_type = "m68k";
const char *cpu_type = "m68k";
/* the following is used externally (sysctl_hw) */
char machine[] = MACHINE; /* from <machine/param.h> */
@ -403,7 +403,7 @@ void
identifycpu()
{
/* there's alot of XXX in here... */
char *mach, *mmu, *fpu;
const char *mach, *mmu, *fpu;
#ifdef M68060
char cpubuf[16];

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.102 2004/08/28 17:53:00 jdolecek Exp $ */
/* $NetBSD: trap.c,v 1.103 2005/06/13 19:31:54 jandberg Exp $ */
/*
* Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@ -83,7 +83,7 @@
#include "opt_fpu_emulate.h"
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.102 2004/08/28 17:53:00 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.103 2005/06/13 19:31:54 jandberg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -179,7 +179,7 @@ extern struct emul emul_sunos;
int astpending;
char *trap_type[] = {
const char *trap_type[] = {
"Bus error",
"Address error",
"Illegal instruction",