diff options
author | 2011-07-03 21:35:38 +0000 | |
---|---|---|
committer | 2011-07-03 21:35:38 +0000 | |
commit | ac634e3634430789407e527939191bde4e9176ba (patch) | |
tree | 4e3049b4a0e63b95ea39e61a2d17e84dc6fe0d22 | |
parent | Enter nvt(4), a driver for the W83795G and W83795ADG hardware monitor. (diff) | |
download | wireguard-openbsd-ac634e3634430789407e527939191bde4e9176ba.tar.xz wireguard-openbsd-ac634e3634430789407e527939191bde4e9176ba.zip |
avoid void * pointer arithmetic.
ok claudio@
-rw-r--r-- | sys/dev/ic/malo.c | 4 |
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); |