Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amiga/amiga Constify pointers to string constants.
details: https://anonhg.NetBSD.org/src/rev/ae40d278f35e
branches: trunk
changeset: 582014:ae40d278f35e
user: jandberg <jandberg%NetBSD.org@localhost>
date: Mon Jun 13 19:31:54 2005 +0000
description:
Constify pointers to string constants.
diffstat:
sys/arch/amiga/amiga/disksubr.c | 7 ++++---
sys/arch/amiga/amiga/machdep.c | 8 ++++----
sys/arch/amiga/amiga/trap.c | 6 +++---
3 files changed, 11 insertions(+), 10 deletions(-)
diffs (91 lines):
diff -r ee6c729ab795 -r ae40d278f35e sys/arch/amiga/amiga/disksubr.c
--- a/sys/arch/amiga/amiga/disksubr.c Mon Jun 13 16:41:44 2005 +0000
+++ b/sys/arch/amiga/amiga/disksubr.c Mon Jun 13 19:31:54 2005 +0000
@@ -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 @@
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;
diff -r ee6c729ab795 -r ae40d278f35e sys/arch/amiga/amiga/machdep.c
--- a/sys/arch/amiga/amiga/machdep.c Mon Jun 13 16:41:44 2005 +0000
+++ b/sys/arch/amiga/amiga/machdep.c Mon Jun 13 19:31:54 2005 +0000
@@ -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 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 @@
identifycpu()
{
/* there's alot of XXX in here... */
- char *mach, *mmu, *fpu;
+ const char *mach, *mmu, *fpu;
#ifdef M68060
char cpubuf[16];
diff -r ee6c729ab795 -r ae40d278f35e sys/arch/amiga/amiga/trap.c
--- a/sys/arch/amiga/amiga/trap.c Mon Jun 13 16:41:44 2005 +0000
+++ b/sys/arch/amiga/amiga/trap.c Mon Jun 13 19:31:54 2005 +0000
@@ -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 @@
int astpending;
-char *trap_type[] = {
+const char *trap_type[] = {
"Bus error",
"Address error",
"Illegal instruction",
Home |
Main Index |
Thread Index |
Old Index