Fix `void *' arithmetic.

This commit is contained in:
mark 1999-01-09 21:04:00 +00:00
parent 2125814fb5
commit e9afce801e
1 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: isadma_machdep.c,v 1.2 1999/01/01 12:42:47 mark Exp $ */
/* $NetBSD: isadma_machdep.c,v 1.3 1999/01/09 21:04:00 mark Exp $ */
#define ISA_DMA_STATS
@ -507,16 +507,16 @@ _isa_bus_dmamap_sync(t, map, offset, len, ops)
/*
* Copy the caller's buffer to the bounce buffer.
*/
memcpy(cookie->id_bouncebuf + offset,
cookie->id_origbuf + offset, len);
memcpy((char *)cookie->id_bouncebuf + offset,
(char *)cookie->id_origbuf + offset, len);
}
if (ops & BUS_DMASYNC_POSTREAD) {
/*
* Copy the bounce buffer to the caller's buffer.
*/
memcpy(cookie->id_origbuf + offset,
cookie->id_bouncebuf + offset, len);
memcpy((char *)cookie->id_origbuf + offset,
(char *)cookie->id_bouncebuf + offset, len);
}
/*
@ -538,7 +538,7 @@ _isa_bus_dmamap_sync(t, map, offset, len, ops)
* Copy the caller's buffer to the bounce buffer.
*/
m_copydata(m0, offset, len,
cookie->id_bouncebuf + offset);
(char *)cookie->id_bouncebuf + offset);
}
if (ops & BUS_DMASYNC_POSTREAD) {
@ -562,7 +562,8 @@ _isa_bus_dmamap_sync(t, map, offset, len, ops)
len : m->m_len - moff;
memcpy(mtod(m, caddr_t) + moff,
cookie->id_bouncebuf + offset, minlen);
(char *)cookie->id_bouncebuf + offset,
minlen);
moff = 0;
len -= minlen;