summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2011-07-03 21:35:39 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2011-07-03 21:35:39 +0000
commit6a76b5436e9ca0f77f2f95909b8d24d9ca647ca2 (patch)
tree3a0c3bf6e06a0a742df70e8f728119f3204eac4a /sys
parent7ce3d2de64ba5c7f8c3fe3c77f847c6931684e83 (diff)
avoid void * pointer arithmetic.
ok claudio@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/malo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/malo.c b/sys/dev/ic/malo.c
index ef3006339c6..5aedf016bc8 100644
--- a/sys/dev/ic/malo.c
+++ b/sys/dev/ic/malo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: malo.c,v 1.92 2010/08/27 17:08:00 jsg Exp $ */
+/* $OpenBSD: malo.c,v 1.93 2011/07/03 21:35:38 dhill Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -472,7 +472,7 @@ malo_alloc_cmd(struct malo_softc *sc)
sc->sc_cookie = sc->sc_cmd_mem;
*sc->sc_cookie = htole32(0xaa55aa55);
- sc->sc_cmd_mem = sc->sc_cmd_mem + sizeof(uint32_t);
+ sc->sc_cmd_mem = (caddr_t)sc->sc_cmd_mem + sizeof(uint32_t);
sc->sc_cookie_dmaaddr = sc->sc_cmd_dmam->dm_segs[0].ds_addr;
sc->sc_cmd_dmaaddr = sc->sc_cmd_dmam->dm_segs[0].ds_addr +
sizeof(uint32_t);