summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2006-09-19 07:23:03 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2006-09-19 07:23:03 +0000
commit8512b6119acc815749cdb7d79b007be651b31eee (patch)
tree80f02481f5212e04d00c6518bb1a746a8eec0a57
parent2bcd7d59789e29c0979e4586e27c91231e0d98b0 (diff)
no externs on protots ad no casts from void *
-rw-r--r--sys/dev/cardbus/if_re_cardbus.c6
-rw-r--r--sys/dev/ic/revar.h10
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 <pvalchev@openbsd.org>
@@ -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 <pvalchev@openbsd.org>
@@ -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);