Fix void * arithmetic.
This commit is contained in:
parent
e598335d1c
commit
a82d8b0a33
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ofw.c,v 1.18 1999/01/03 02:23:28 mark Exp $ */
|
||||
/* $NetBSD: ofw.c,v 1.19 1999/01/09 22:56:06 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
@ -1527,7 +1527,7 @@ ofw_getphysmeminfo()
|
||||
if (s < mp1->start)
|
||||
break;
|
||||
if (mp1 < mp) {
|
||||
bcopy(mp1, mp1 + 1, (void *)mp - (void *)mp1);
|
||||
bcopy(mp1, mp1 + 1, (char *)mp - (char *)mp1);
|
||||
mp1->start = s;
|
||||
mp1->size = sz;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: shark_machdep.c,v 1.12 1999/01/03 02:23:28 mark Exp $ */
|
||||
/* $NetBSD: shark_machdep.c,v 1.13 1999/01/09 22:56:06 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
@ -281,7 +281,7 @@ initarm(ofw_handle)
|
||||
|
||||
/* Now for the SHARK-specific part of the FIQ set-up */
|
||||
fiqhandler.fh_func = shark_fiq;
|
||||
fiqhandler.fh_size = shark_fiq_end - shark_fiq;
|
||||
fiqhandler.fh_size = (char *)shark_fiq_end - (char *)shark_fiq;
|
||||
fiqhandler.fh_mask = 0x01; /* XXX ??? */
|
||||
fiqhandler.fh_r8 = isa_io_virtaddr;
|
||||
fiqhandler.fh_r9 = 0; /* no routine right now */
|
||||
|
Loading…
Reference in New Issue
Block a user