Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Add const.
details: https://anonhg.NetBSD.org/src/rev/57cf7ef4887a
branches: trunk
changeset: 581697:57cf7ef4887a
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jun 03 22:02:30 2005 +0000
description:
Add const.
diffstat:
sys/arch/sun2/dev/consinit.c | 6 +++---
sys/arch/sun2/include/promlib.h | 4 ++--
sys/arch/sun2/sun2/locore2.c | 6 +++---
sys/arch/sun2/sun2/promlib.c | 6 +++---
sys/arch/sun2/sun2/trap.c | 6 +++---
sys/arch/sun68k/include/mon.h | 6 +++---
6 files changed, 17 insertions(+), 17 deletions(-)
diffs (153 lines):
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun2/dev/consinit.c
--- a/sys/arch/sun2/dev/consinit.c Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun2/dev/consinit.c Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: consinit.c,v 1.4 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: consinit.c,v 1.5 2005/06/03 22:02:30 tsutsui Exp $ */
/*-
* Copyright (c) 2001 Matthew Fredette
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.4 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: consinit.c,v 1.5 2005/06/03 22:02:30 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -208,7 +208,7 @@
#ifdef notyet /* PROM_OBP_V2 */
char buffer[128];
#endif /* PROM_OBP_V2 */
- char *consname = "unknown";
+ const char *consname = "unknown";
#if KGDB
#if NZS > 0
extern const struct cdevsw zstty_cdevsw;
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun2/include/promlib.h
--- a/sys/arch/sun2/include/promlib.h Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun2/include/promlib.h Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: promlib.h,v 1.6 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: promlib.h,v 1.7 2005/06/03 22:02:30 tsutsui Exp $ */
/*-
* Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
void prom_printf(const char *, ...);
void prom_abort(void);
void prom_halt(void) __attribute__((__noreturn__));
-void prom_boot(char *) __attribute__((__noreturn__));
+void prom_boot(const char *) __attribute__((__noreturn__));
char *prom_getbootpath(void);
char *prom_getbootfile(void);
char *prom_getbootargs(void);
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun2/sun2/locore2.c
--- a/sys/arch/sun2/sun2/locore2.c Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun2/sun2/locore2.c Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore2.c,v 1.12 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: locore2.c,v 1.13 2005/06/03 22:02:30 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.12 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore2.c,v 1.13 2005/06/03 22:02:30 tsutsui Exp $");
#include "opt_ddb.h"
@@ -89,7 +89,7 @@
*/
u_char cpu_machine_id = 0;
-char *cpu_string = NULL;
+const char *cpu_string = NULL;
int cpu_has_multibus = 0;
int cpu_has_vme = 0;
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun2/sun2/promlib.c
--- a/sys/arch/sun2/sun2/promlib.c Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun2/sun2/promlib.c Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: promlib.c,v 1.12 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: promlib.c,v 1.13 2005/06/03 22:02:30 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: promlib.c,v 1.12 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: promlib.c,v 1.13 2005/06/03 22:02:30 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -335,7 +335,7 @@
* Caller must pass a string that is in our data segment.
*/
void
-prom_boot(char *bs)
+prom_boot(const char *bs)
{
_mode_monitor(&sunmon_kernel_state, 1);
(*romVectorPtr->reBoot)(bs);
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun2/sun2/trap.c
--- a/sys/arch/sun2/sun2/trap.c Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun2/sun2/trap.c Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.19 2005/01/22 15:36:09 chs Exp $ */
+/* $NetBSD: trap.c,v 1.20 2005/06/03 22:02:30 tsutsui Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.19 2005/01/22 15:36:09 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.20 2005/06/03 22:02:30 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_execfmt.h"
@@ -144,7 +144,7 @@
int astpending;
int want_resched;
-char *trap_type[] = {
+const char *trap_type[] = {
"Bus error",
"Address error",
"Illegal instruction",
diff -r 93db8ca7ef21 -r 57cf7ef4887a sys/arch/sun68k/include/mon.h
--- a/sys/arch/sun68k/include/mon.h Fri Jun 03 22:01:01 2005 +0000
+++ b/sys/arch/sun68k/include/mon.h Fri Jun 03 22:02:30 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mon.h,v 1.2 2005/01/22 15:36:11 chs Exp $ */
+/* $NetBSD: mon.h,v 1.3 2005/06/03 22:02:57 tsutsui Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -165,7 +165,7 @@
* Reboot interface routine -- resets and reboots system. No return.
*/
- int (*reBoot)(char *); /* e.g. reBoot("xy()vmunix") */
+ int (*reBoot)(const char *); /* e.g. reBoot("xy()vmunix") */
/*
* Line input and parsing
@@ -184,7 +184,7 @@
* Print formatted output to current output sink
*/
- int (*printf)(char *, ...); /* Like kernel printf */
+ int (*printf)(const char *, ...); /* Like kernel printf */
int (*printHex)(int, int); /* Format N digits in hex */
/*
Home |
Main Index |
Thread Index |
Old Index