Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/cesfic/cesfic Adapt to compiling with -Wcast-qual b...
details: https://anonhg.NetBSD.org/src/rev/70fb15caa6b9
branches: trunk
changeset: 581889:70fb15caa6b9
user: he <he%NetBSD.org@localhost>
date: Thu Jun 09 11:24:04 2005 +0000
description:
Adapt to compiling with -Wcast-qual by adding consts.
diffstat:
sys/arch/cesfic/cesfic/trap.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 20a43858b929 -r 70fb15caa6b9 sys/arch/cesfic/cesfic/trap.c
--- a/sys/arch/cesfic/cesfic/trap.c Thu Jun 09 11:23:36 2005 +0000
+++ b/sys/arch/cesfic/cesfic/trap.c Thu Jun 09 11:24:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.20 2004/08/28 17:53:01 jdolecek Exp $ */
+/* $NetBSD: trap.c,v 1.21 2005/06/09 11:24:04 he Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.20 2004/08/28 17:53:01 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.21 2005/06/09 11:24:04 he Exp $");
#include "opt_ddb.h"
#include "opt_execfmt.h"
@@ -146,7 +146,7 @@
int astpending;
-char *trap_type[] = {
+const char *trap_type[] = {
"Bus error",
"Address error",
"Illegal instruction",
@@ -758,11 +758,11 @@
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
Home |
Main Index |
Thread Index |
Old Index