Make admsw(4) compile again fixing typos and adding the missing variable

after r199762.
This commit is contained in:
Bjoern A. Zeeb 2009-12-13 20:27:59 +00:00
parent 60a396a4f7
commit 07f5a2c997
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200484

View File

@ -745,10 +745,11 @@ static void
admsw_watchdog(void *arg)
{
struct admsw_softc *sc = arg;
struct ifnet *ifp;
int vlan;
callout_reset(&sc->watchdog, hz, admsw_watchdog, sc);
if (sc->sc_timer == 0 || --sc->timer > 0)
callout_reset(&sc->sc_watchdog, hz, admsw_watchdog, sc);
if (sc->sc_timer == 0 || --sc->sc_timer > 0)
return;
/* Check if an interrupt was lost. */
@ -775,6 +776,8 @@ admsw_watchdog(void *arg)
admsw_stop(sc->sc_ifnet[vlan], 0);
admsw_init(sc);
ifp = sc->sc_ifnet[0];
/* Try to get more packets going. */
admsw_start(ifp);
}