fix pointer signedness and build with GCC4.

This commit is contained in:
mrg 2006-07-01 05:55:34 +00:00
parent 334f3f5949
commit 5bf1ad3744
7 changed files with 20 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: consio.c,v 1.13 2002/05/24 21:40:59 ragge Exp $ */
/* $NetBSD: consio.c,v 1.14 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 1994, 1998 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -251,7 +251,7 @@ void ka630_consinit(void)
i |= (*NVR++ & 0xFF) << 16;
i |= (*NVR++ & 0xFF) << 24;
ka630_conspage = (char *) i;
ka630_conspage = (unsigned char *) i;
/* Go to last row to minimize confusion */
ka630_conspage[KA630_ROW] = ka630_conspage[KA630_MAXROW];
@ -269,7 +269,7 @@ void ka630_consinit(void)
*/
void ka53_consinit(void)
{
ka53_conspage = (char *) 0x2014044b;
ka53_conspage = (unsigned char *) 0x2014044b;
put_fp = ka53_rom_putchar;
get_fp = ka53_rom_getchar;

View File

@ -1,4 +1,4 @@
/* $NetBSD: data.h,v 1.3 2001/07/26 15:05:09 wiz Exp $ */
/* $NetBSD: data.h,v 1.4 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -68,5 +68,3 @@ struct bqo {
*/
long xxx[6]; /* 24 -- total: 84 bytes */
};
extern struct bqo *bqo;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_de.c,v 1.3 2006/06/08 07:03:11 he Exp $ */
/* $NetBSD: if_de.c,v 1.4 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden. All rights reserved.
@ -93,7 +93,7 @@ int
deopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
{
int i, cdata, *map, npgs;
char eaddr[6];
u_char eaddr[6];
/* point to the device in memory */
if (askname == 0) /* Override if autoboot */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ni.c,v 1.2 2000/07/10 10:40:38 ragge Exp $ */
/* $NetBSD: if_ni.c,v 1.3 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 2000 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -99,7 +99,7 @@ static int *syspte, allocbase, niaddr;
static struct ni_gvppqb *gvppqb;
static struct ni_fqb *fqb;
static struct ni_bbd *bbd;
static char enaddr[6];
static u_char enaddr[6];
static int beenhere = 0;
struct netif_driver ni_driver = {

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_qe.c,v 1.3 2000/05/20 13:30:03 ragge Exp $ */
/* $NetBSD: if_qe.c,v 1.4 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 1998 Roar Thronæs. All rights reserved.
@ -234,7 +234,7 @@ qe_put(struct iodesc *desc, void *pkt, size_t len) {
;
if ((QE_RCSR(QE_CSR_CSR) & QE_XMIT_INT) == 0) {
char eaddr[6];
u_char eaddr[6];
qe_init(eaddr);
return -1;
@ -242,7 +242,7 @@ qe_put(struct iodesc *desc, void *pkt, size_t len) {
QE_WCSR(QE_CSR_CSR, QE_RCSR(QE_CSR_CSR) & ~QE_RCV_INT);
if (sc->tring[0].qe_status1 & 0xc000) {
char eaddr[6];
u_char eaddr[6];
qe_init(eaddr);
return -1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ra.c,v 1.16 2006/06/11 08:29:03 he Exp $ */
/* $NetBSD: ra.c,v 1.17 2006/07/01 05:55:34 mrg Exp $ */
/*
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
* All rights reserved.
@ -105,10 +105,10 @@ raopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
nexaddr = bootrpb.adpphy;
} else
csrbase += (ctlr ? 000334 : 012150);
ra_ip = (short *)csrbase;
ra_sa = ra_sw = (short *)csrbase + 1;
ra_ip = (u_short *)csrbase;
ra_sa = ra_sw = (u_short *)csrbase + 1;
if (nexaddr) { /* have map registers */
mapregs = (int *)nexaddr + 512;
mapregs = (u_int *)nexaddr + 512;
mapregs[494] = PG_V | (((u_int)&uda) >> 9);
mapregs[495] = mapregs[494] + 1;
ubauda = (struct uda *)((char*)0x3dc00 +
@ -133,9 +133,9 @@ raopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
}
kdaddr = nexaddr & ~(BI_NODESIZE - 1);
ra_ip = (short *)(kdaddr + KDB_IP);
ra_sa = (short *)(kdaddr + KDB_SA);
ra_sw = (short *)(kdaddr + KDB_SW);
ra_ip = (u_short *)(kdaddr + KDB_IP);
ra_sa = (u_short *)(kdaddr + KDB_SA);
ra_sw = (u_short *)(kdaddr + KDB_SW);
johan = ((u_int)&uda.uda_ca.ca_rspdsc) & 0xffff;
johan2 = (((u_int)&uda.uda_ca.ca_rspdsc) & 0xffff0000) >> 16;
w = (int *)(kdaddr + BIREG_VAXBICSR);

View File

@ -1,4 +1,4 @@
/* $NetBSD: bootxx.c,v 1.25 2006/06/08 08:18:13 he Exp $ */
/* $NetBSD: bootxx.c,v 1.26 2006/07/01 05:55:34 mrg Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -298,7 +298,7 @@ romstrategy(sc, func, dblk, size, buf, rsize)
if (rpb->devtyp == BDEV_HP)
hpread(block);
else
read750(block, bootregs);
read750(block, (int *)bootregs);
bcopy(0, cbuf, 512);
size -= 512;
cbuf += 512;