Fix some warnings.

This commit is contained in:
Peter Wemm 1999-11-18 08:32:02 +00:00
parent 45d3a132c4
commit 609d21b734
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53354
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;