From 8512b6119acc815749cdb7d79b007be651b31eee Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 19 Sep 2006 07:23:03 +0000 Subject: no externs on protots ad no casts from void * --- sys/dev/cardbus/if_re_cardbus.c | 6 +++--- sys/dev/ic/revar.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/cardbus/if_re_cardbus.c b/sys/dev/cardbus/if_re_cardbus.c index fcdf87cb1a5..1adcf334e41 100644 --- a/sys/dev/cardbus/if_re_cardbus.c +++ b/sys/dev/cardbus/if_re_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_re_cardbus.c,v 1.8 2006/09/18 21:33:32 dim Exp $ */ +/* $OpenBSD: if_re_cardbus.c,v 1.9 2006/09/19 07:23:02 mickey Exp $ */ /* * Copyright (c) 2005 Peter Valchev @@ -276,7 +276,7 @@ re_cardbus_detach(struct device *self, int flags) void re_cardbus_shutdown(void *arg) { - struct rl_softc *sc = (struct rl_softc *)arg; + struct rl_softc *sc = arg; struct ifnet *ifp = &sc->sc_arpcom.ac_if; re_stop(ifp, 1); @@ -285,7 +285,7 @@ re_cardbus_shutdown(void *arg) void re_cardbus_powerhook(int why, void *arg) { - struct rl_softc *sc = (struct rl_softc *)arg; + struct rl_softc *sc = arg; struct ifnet *ifp = &sc->sc_arpcom.ac_if; if (why == PWR_RESUME) diff --git a/sys/dev/ic/revar.h b/sys/dev/ic/revar.h index 8593990cb66..0db8427bd50 100644 --- a/sys/dev/ic/revar.h +++ b/sys/dev/ic/revar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: revar.h,v 1.3 2006/09/18 21:33:32 dim Exp $ */ +/* $OpenBSD: revar.h,v 1.4 2006/09/19 07:23:02 mickey Exp $ */ /* * Copyright (c) 2005 Peter Valchev @@ -16,7 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -extern int re_intr(void *); -extern int re_attach(struct rl_softc *); -extern int re_init(struct ifnet *); -extern void re_stop(struct ifnet *, int); +int re_intr(void *); +int re_attach(struct rl_softc *); +int re_init(struct ifnet *); +void re_stop(struct ifnet *, int); -- cgit v1.2.3