Appease -Wcast-qual by adding consts in appropriate places.

This commit is contained in:
he 2005-06-09 16:02:19 +00:00
parent 446f2d2cfa
commit 9eabff5290
5 changed files with 19 additions and 19 deletions

View File

@ -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 @@ typedef struct arc_calls
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 */

View File

@ -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 @@ struct bootdev_data {
int partition;
};
int getpno(char **, int *);
int getpno(const char **, int *);
/*
* The following several variables are related to
@ -164,7 +164,7 @@ struct devmap {
* (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 @@ makebootdev(char *cp)
}
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;

View File

@ -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 @@ int mem_cluster_cnt;
/* 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 @@ extern struct user *proc0paddr;
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 @@ mips_machdep_cache_config(void)
/*
* Return a pointer to the given environment variable.
*/
char *
const char *
firmware_getenv(const char *envname)
{
char **env;

View File

@ -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 confargs {
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;

View File

@ -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 @@ static char *firmware_getenv(char *);
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];