Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc Appease -Wcast-qual by adding consts in appropr...
details: https://anonhg.NetBSD.org/src/rev/92e8e90df219
branches: trunk
changeset: 581900:92e8e90df219
user: he <he%NetBSD.org@localhost>
date: Thu Jun 09 16:02:19 2005 +0000
description:
Appease -Wcast-qual by adding consts in appropriate places.
diffstat:
sys/arch/arc/arc/arcbios.h | 6 +++---
sys/arch/arc/arc/autoconf.c | 12 ++++++------
sys/arch/arc/arc/machdep.c | 10 +++++-----
sys/arch/arc/include/autoconf.h | 4 ++--
sys/arch/arc/stand/boot/boot.c | 6 +++---
5 files changed, 19 insertions(+), 19 deletions(-)
diffs (152 lines):
diff -r f2df6e5ae4d6 -r 92e8e90df219 sys/arch/arc/arc/arcbios.h
--- a/sys/arch/arc/arc/arcbios.h Thu Jun 09 14:50:11 2005 +0000
+++ b/sys/arch/arc/arc/arcbios.h Thu Jun 09 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arcbios.h,v 1.6 2005/01/22 07:35:33 tsutsui Exp $ */
+/* $NetBSD: arcbios.h,v 1.7 2005/06/09 16:02:19 he Exp $ */
/* $OpenBSD: arcbios.h,v 1.1 1998/01/29 15:06:22 pefo Exp $ */
/*-
@@ -303,8 +303,8 @@
char *, /* Path */
arc_mount_t); /* Operation */
- char *(*getenv)( /* GetEnvironmentVariable 31 */
- char *); /* Variable */
+ const char *(*getenv)( /* GetEnvironmentVariable 31 */
+ const char *); /* Variable */
arc_status_t (*putenv)( /* SetEnvironmentVariable 32 */
char *, /* Variable */
diff -r f2df6e5ae4d6 -r 92e8e90df219 sys/arch/arc/arc/autoconf.c
--- a/sys/arch/arc/arc/autoconf.c Thu Jun 09 14:50:11 2005 +0000
+++ b/sys/arch/arc/arc/autoconf.c Thu Jun 09 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.24 2005/06/03 12:29:43 tsutsui Exp $ */
+/* $NetBSD: autoconf.c,v 1.25 2005/06/09 16:02:19 he Exp $ */
/* $OpenBSD: autoconf.c,v 1.9 1997/05/18 13:45:20 pefo Exp $ */
/*
@@ -88,7 +88,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.24 2005/06/03 12:29:43 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.25 2005/06/09 16:02:19 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -112,7 +112,7 @@
int partition;
};
-int getpno(char **, int *);
+int getpno(const char **, int *);
/*
* The following several variables are related to
@@ -164,7 +164,7 @@
* (beware for empty scsi id's...)
*/
void
-makebootdev(char *cp)
+makebootdev(const char *cp)
{
int ok, junk;
static struct devmap devmap[] = {
@@ -218,10 +218,10 @@
}
int
-getpno(char **cp, int *np)
+getpno(const char **cp, int *np)
{
int val = 0;
- char *s = *cp;
+ const char *s = *cp;
int got = 0;
*np = 0;
diff -r f2df6e5ae4d6 -r 92e8e90df219 sys/arch/arc/arc/machdep.c
--- a/sys/arch/arc/arc/machdep.c Thu Jun 09 14:50:11 2005 +0000
+++ b/sys/arch/arc/arc/machdep.c Thu Jun 09 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.87 2005/06/03 12:30:53 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.88 2005/06/09 16:02:19 he Exp $ */
/* $OpenBSD: machdep.c,v 1.36 1999/05/22 21:22:19 weingart Exp $ */
/*
@@ -78,7 +78,7 @@
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.87 2005/06/03 12:30:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.88 2005/06/09 16:02:19 he Exp $");
#include "fs_mfs.h"
#include "opt_ddb.h"
@@ -205,7 +205,7 @@
/* initialize bss, etc. from kernel start, before main() is called. */
void mach_init(int, char **argv, char **);
-char *firmware_getenv(const char *env);
+const char *firmware_getenv(const char *env);
void arc_sysreset(bus_addr_t, bus_size_t);
/*
@@ -236,7 +236,7 @@
void
mach_init(int argc, char *argv[], char *envv[])
{
- char *cp;
+ const char *cp;
int i;
paddr_t kernstartpfn, kernendpfn, first, last;
caddr_t kernend, v;
@@ -476,7 +476,7 @@
/*
* Return a pointer to the given environment variable.
*/
-char *
+const char *
firmware_getenv(const char *envname)
{
char **env;
diff -r f2df6e5ae4d6 -r 92e8e90df219 sys/arch/arc/include/autoconf.h
--- a/sys/arch/arc/include/autoconf.h Thu Jun 09 14:50:11 2005 +0000
+++ b/sys/arch/arc/include/autoconf.h Thu Jun 09 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.h,v 1.10 2005/06/03 12:11:17 tsutsui Exp $ */
+/* $NetBSD: autoconf.h,v 1.11 2005/06/09 16:02:19 he Exp $ */
/* $OpenBSD: autoconf.h,v 1.2 1997/03/12 19:16:54 pefo Exp $ */
/* NetBSD: autoconf.h,v 1.1 1995/02/13 23:07:31 cgd Exp */
@@ -73,7 +73,7 @@
struct abus *ca_bus; /* bus device resides on. */
};
-void makebootdev(char *cp);
+void makebootdev(const char *cp);
/* serial console related variables */
extern int com_freq;
diff -r f2df6e5ae4d6 -r 92e8e90df219 sys/arch/arc/stand/boot/boot.c
--- a/sys/arch/arc/stand/boot/boot.c Thu Jun 09 14:50:11 2005 +0000
+++ b/sys/arch/arc/stand/boot/boot.c Thu Jun 09 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.2 2005/04/23 17:35:53 thorpej Exp $ */
+/* $NetBSD: boot.c,v 1.3 2005/06/09 16:02:19 he Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -136,8 +136,8 @@
int
main(int argc, char **argv)
{
- char *kernel = NULL;
- char *bootpath = NULL;
+ const char *kernel = NULL;
+ const char *bootpath = NULL;
char bootfile[PATH_MAX];
void (*entry)(int, char *[], int, void *);
u_long marks[MARK_MAX];
Home |
Main Index |
Thread Index |
Old Index