using UNTIMEOUT macro instead of timeout()

This commit is contained in:
Sylvain Rochet 2012-05-17 16:36:59 +02:00
parent db794c2d32
commit 8834a8b216

View File

@ -412,7 +412,7 @@ lcp_close(unit, reason)
new_phase(PHASE_TERMINATE); new_phase(PHASE_TERMINATE);
if (f->flags & DELAYED_UP) { if (f->flags & DELAYED_UP) {
untimeout(lcp_delayed_up, f); UNTIMEOUT(lcp_delayed_up, f);
f->state = STOPPED; f->state = STOPPED;
} }
oldstate = f->state; oldstate = f->state;
@ -472,7 +472,7 @@ lcp_lowerdown(unit)
if (f->flags & DELAYED_UP) { if (f->flags & DELAYED_UP) {
f->flags &= ~DELAYED_UP; f->flags &= ~DELAYED_UP;
untimeout(lcp_delayed_up, f); UNTIMEOUT(lcp_delayed_up, f);
} else } else
fsm_lowerdown(&lcp_fsm[unit]); fsm_lowerdown(&lcp_fsm[unit]);
} }
@ -507,7 +507,7 @@ lcp_input(unit, p, len)
if (f->flags & DELAYED_UP) { if (f->flags & DELAYED_UP) {
f->flags &= ~DELAYED_UP; f->flags &= ~DELAYED_UP;
untimeout(lcp_delayed_up, f); UNTIMEOUT(lcp_delayed_up, f);
fsm_lowerup(f); fsm_lowerup(f);
} }
fsm_input(f, p, len); fsm_input(f, p, len);