diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2008-09-10 14:01:24 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2008-09-10 14:01:24 +0000 |
commit | 33d64896abc9e79070ec22125a832e7d8ef87878 (patch) | |
tree | 1f2297f6ceb3127f1cc36b8d9c89baeeceb16922 /sys/net/if_bridge.c | |
parent | 528af50e90df2cf2ebdf638dc4d94752c1861936 (diff) |
Convert timeout_add() calls using multiples of hz to timeout_add_sec()
Really just the low-hanging fruit of (hopefully) forthcoming timeout
conversions.
ok art@, krw@
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r-- | sys/net/if_bridge.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c index 68137511536..96ee7a54158 100644 --- a/sys/net/if_bridge.c +++ b/sys/net/if_bridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bridge.c,v 1.171 2008/09/02 17:35:16 chl Exp $ */ +/* $OpenBSD: if_bridge.c,v 1.172 2008/09/10 14:01:23 blambert Exp $ */ /* * Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net) @@ -601,7 +601,7 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } sc->sc_brttimeout = bparam->ifbrp_ctime; if (bparam->ifbrp_ctime != 0) - timeout_add(&sc->sc_brtimeout, sc->sc_brttimeout * hz); + timeout_add_sec(&sc->sc_brtimeout, sc->sc_brttimeout); else timeout_del(&sc->sc_brtimeout); break; @@ -965,7 +965,7 @@ bridge_init(struct bridge_softc *sc) bstp_initialization(sc->sc_stp); if (sc->sc_brttimeout != 0) - timeout_add(&sc->sc_brtimeout, sc->sc_brttimeout * hz); + timeout_add_sec(&sc->sc_brtimeout, sc->sc_brttimeout); } /* @@ -1903,7 +1903,7 @@ bridge_rtage(struct bridge_softc *sc) } if (sc->sc_brttimeout != 0) - timeout_add(&sc->sc_brtimeout, sc->sc_brttimeout * hz); + timeout_add_sec(&sc->sc_brtimeout, sc->sc_brttimeout); } void |