summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authordavem <davem@cvs.openbsd.org>1995-10-23 12:36:34 +0000
committerdavem <davem@cvs.openbsd.org>1995-10-23 12:36:34 +0000
commit5b820b76535bc49e163a07eee72c631244b96c14 (patch)
tree521b37c64c8ccb9df642dec19ccbc1bc8d0faa70 /sys/arch/sparc/dev
parent6f0f0dc94ccc98a5a887606b17a9b84b520a9a5f (diff)
Cast in places where we discard volatile pointers in function calls. We
know that what we are doing is ok, so let gcc know this.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/if_le.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c
index 418a38aa43f..7b5d2eb1565 100644
--- a/sys/arch/sparc/dev/if_le.c
+++ b/sys/arch/sparc/dev/if_le.c
@@ -412,7 +412,7 @@ lereset(dev)
ler2->ler2_tmd[i].tmd3 = 0;
}
-bzero(&ler2->ler2_rbuf[0][0], (LERBUF + LETBUF) * LEMTU);
+bzero((void *)&ler2->ler2_rbuf[0][0], (LERBUF + LETBUF) * LEMTU);
/* lance will stuff packet into receive buffer 0 next */
sc->sc_rmd = 0;
@@ -483,14 +483,14 @@ lestart(ifp)
IF_DEQUEUE(&sc->sc_if.if_snd, m);
if (m == 0)
return;
- len = leput(sc->sc_r2->ler2_tbuf[0], m);
+ len = leput((char *)sc->sc_r2->ler2_tbuf[0], m);
#if NBPFILTER > 0
/*
* If bpf is listening on this interface, let it
* see the packet before we commit it to the wire.
*/
if (sc->sc_if.if_bpf)
- bpf_tap(sc->sc_if.if_bpf, sc->sc_r2->ler2_tbuf[0], len);
+ bpf_tap(sc->sc_if.if_bpf, (u_char *)sc->sc_r2->ler2_tbuf[0], len);
#endif
#ifdef PACKETSTATS
@@ -672,7 +672,7 @@ lerint(sc)
return;
}
} else {
- leread(sc, sc->sc_r2->ler2_rbuf[bix], len);
+ leread(sc, (char *)sc->sc_r2->ler2_rbuf[bix], len);
#ifdef PACKETSTATS
lerpacketsizes[len]++;
#endif