diff options
author | peter <peter@FreeBSD.org> | 1999-11-18 08:32:02 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-11-18 08:32:02 +0000 |
commit | b28f5ff26be4d81732f54bbf6802a04d12462516 (patch) | |
tree | b4af4453e56ada5ac95a000a357ff668e54c6e8b | |
parent | cbf25b6e9a8029b65870f60f6007c7b7f6f55bad (diff) | |
download | FreeBSD-src-b28f5ff26be4d81732f54bbf6802a04d12462516.zip FreeBSD-src-b28f5ff26be4d81732f54bbf6802a04d12462516.tar.gz |
Fix some warnings.
-rw-r--r-- | sys/dev/ar/if_ar.c | 4 | ||||
-rw-r--r-- | sys/dev/ar/if_ar_isa.c | 4 | ||||
-rw-r--r-- | sys/i386/isa/if_ar.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index f568bfe..4d27d72 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -428,9 +428,9 @@ arattach(struct ar_hardc *hc) struct ar_softc *sc; #ifndef NETGRAPH struct ifnet *ifp; + char *iface; #endif /* NETGRAPH */ int unit; - char *iface; printf("arc%d: %uK RAM, %u ports, rev %u.\n", hc->cunit, @@ -1129,7 +1129,7 @@ arc_init(struct ar_hardc *hc) MALLOC(sc, struct ar_softc *, hc->numports * sizeof(struct ar_softc), M_DEVBUF, M_WAITOK); if (sc == NULL) - return (ENOMEM); + return; bzero(sc, hc->numports * sizeof(struct ar_softc)); hc->sc = sc; diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index f568bfe..4d27d72 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -428,9 +428,9 @@ arattach(struct ar_hardc *hc) struct ar_softc *sc; #ifndef NETGRAPH struct ifnet *ifp; + char *iface; #endif /* NETGRAPH */ int unit; - char *iface; printf("arc%d: %uK RAM, %u ports, rev %u.\n", hc->cunit, @@ -1129,7 +1129,7 @@ arc_init(struct ar_hardc *hc) MALLOC(sc, struct ar_softc *, hc->numports * sizeof(struct ar_softc), M_DEVBUF, M_WAITOK); if (sc == NULL) - return (ENOMEM); + return; bzero(sc, hc->numports * sizeof(struct ar_softc)); hc->sc = sc; diff --git a/sys/i386/isa/if_ar.c b/sys/i386/isa/if_ar.c index f568bfe..4d27d72 100644 --- a/sys/i386/isa/if_ar.c +++ b/sys/i386/isa/if_ar.c @@ -428,9 +428,9 @@ arattach(struct ar_hardc *hc) struct ar_softc *sc; #ifndef NETGRAPH struct ifnet *ifp; + char *iface; #endif /* NETGRAPH */ int unit; - char *iface; printf("arc%d: %uK RAM, %u ports, rev %u.\n", hc->cunit, @@ -1129,7 +1129,7 @@ arc_init(struct ar_hardc *hc) MALLOC(sc, struct ar_softc *, hc->numports * sizeof(struct ar_softc), M_DEVBUF, M_WAITOK); if (sc == NULL) - return (ENOMEM); + return; bzero(sc, hc->numports * sizeof(struct ar_softc)); hc->sc = sc; |