more cast-qual fallout
This commit is contained in:
parent
4c26f57294
commit
74c3fc01b1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: autoconf.c,v 1.66 2004/10/23 17:12:22 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.67 2005/06/01 18:34:12 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.66 2004/10/23 17:12:22 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.67 2005/06/01 18:34:12 drochner Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -103,7 +103,7 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.66 2004/10/23 17:12:22 thorpej Exp $"
|
||||
struct intrhand intrtab[MAX_DEV_NCOOKIES];
|
||||
static struct device *booted_controller;
|
||||
static int booted_slot, booted_unit;
|
||||
static char *booted_protocol;
|
||||
static const char *booted_protocol;
|
||||
|
||||
/*
|
||||
* Configure all devices on system
|
||||
@ -119,7 +119,7 @@ cpu_configure()
|
||||
evcnt_attach_static(&pmax_fpu_evcnt);
|
||||
evcnt_attach_static(&pmax_memerr_evcnt);
|
||||
|
||||
if (config_rootfound("mainbus", "mainbus") == NULL)
|
||||
if (config_rootfound("mainbus", NULL) == NULL)
|
||||
panic("no mainbus found");
|
||||
|
||||
/* Reset any bus errors due to probing nonexistent devices. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: disksubr.c,v 1.41 2003/08/07 16:29:13 agc Exp $ */
|
||||
/* $NetBSD: disksubr.c,v 1.42 2005/06/01 18:34:12 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
|
||||
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.41 2003/08/07 16:29:13 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.42 2005/06/01 18:34:12 drochner Exp $");
|
||||
|
||||
#include "opt_compat_ultrix.h"
|
||||
|
||||
@ -47,8 +47,8 @@ __KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.41 2003/08/07 16:29:13 agc Exp $");
|
||||
#include <ufs/ufs/dinode.h> /* XXX for fs.h */
|
||||
#include <ufs/ffs/fs.h> /* XXX for BBSIZE & SBSIZE */
|
||||
|
||||
char *compat_label __P((dev_t dev, void (*strat) __P((struct buf *bp)),
|
||||
struct disklabel *lp, struct cpu_disklabel *osdep)); /* XXX */
|
||||
const char *compat_label __P((dev_t dev, void (*strat) __P((struct buf *bp)),
|
||||
struct disklabel *lp, struct cpu_disklabel *osdep)); /* XXX */
|
||||
|
||||
#endif
|
||||
|
||||
@ -69,7 +69,7 @@ readdisklabel(dev, strat, lp, osdep)
|
||||
{
|
||||
struct buf *bp;
|
||||
struct disklabel *dlp;
|
||||
char *msg = NULL;
|
||||
const char *msg = NULL;
|
||||
|
||||
if (lp->d_secperunit == 0)
|
||||
lp->d_secperunit = 0x1fffffff;
|
||||
@ -125,7 +125,7 @@ readdisklabel(dev, strat, lp, osdep)
|
||||
* Given a buffer bp, try and interpret it as an Ultrix disk label,
|
||||
* putting the partition info into a native NetBSD label
|
||||
*/
|
||||
char *
|
||||
const char *
|
||||
compat_label(dev, strat, lp, osdep)
|
||||
dev_t dev;
|
||||
void (*strat) __P((struct buf *bp));
|
||||
@ -134,7 +134,7 @@ compat_label(dev, strat, lp, osdep)
|
||||
{
|
||||
dec_disklabel *dlp;
|
||||
struct buf *bp = NULL;
|
||||
char *msg = NULL;
|
||||
const char *msg = NULL;
|
||||
|
||||
bp = geteblk((int)lp->d_secsize);
|
||||
bp->b_dev = dev;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.210 2005/04/25 15:02:06 lukem Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.211 2005/06/01 18:34:12 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -77,7 +77,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.210 2005/04/25 15:02:06 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.211 2005/06/01 18:34:12 drochner Exp $");
|
||||
|
||||
#include "fs_mfs.h"
|
||||
#include "opt_ddb.h"
|
||||
@ -201,7 +201,8 @@ mach_init(argc, argv, code, cv, bim, bip)
|
||||
u_int bim;
|
||||
char *bip;
|
||||
{
|
||||
char *cp, *bootinfo_msg;
|
||||
char *cp;
|
||||
const char *bootinfo_msg;
|
||||
u_long first, last;
|
||||
int i;
|
||||
caddr_t kernend;
|
||||
|
Loading…
Reference in New Issue
Block a user