From a134be24c2012076738593dc3d299765f4d40be3 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Sat, 28 Sep 2002 20:07:09 -0300 Subject: o LAPB: use refcounts and rwlock to protect lapb_cb and list Also some CodingStyle code reformatting. Ah, killed the typedef for lapb_cb. --- net/lapb/lapb_timer.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'net/lapb/lapb_timer.c') diff --git a/net/lapb/lapb_timer.c b/net/lapb/lapb_timer.c index a010ac9d63fc..73b75f2e03de 100644 --- a/net/lapb/lapb_timer.c +++ b/net/lapb/lapb_timer.c @@ -37,7 +37,7 @@ static void lapb_t1timer_expiry(unsigned long); static void lapb_t2timer_expiry(unsigned long); -void lapb_start_t1timer(lapb_cb *lapb) +void lapb_start_t1timer(struct lapb_cb *lapb) { del_timer(&lapb->t1timer); @@ -48,7 +48,7 @@ void lapb_start_t1timer(lapb_cb *lapb) add_timer(&lapb->t1timer); } -void lapb_start_t2timer(lapb_cb *lapb) +void lapb_start_t2timer(struct lapb_cb *lapb) { del_timer(&lapb->t2timer); @@ -59,24 +59,24 @@ void lapb_start_t2timer(lapb_cb *lapb) add_timer(&lapb->t2timer); } -void lapb_stop_t1timer(lapb_cb *lapb) +void lapb_stop_t1timer(struct lapb_cb *lapb) { del_timer(&lapb->t1timer); } -void lapb_stop_t2timer(lapb_cb *lapb) +void lapb_stop_t2timer(struct lapb_cb *lapb) { del_timer(&lapb->t2timer); } -int lapb_t1timer_running(lapb_cb *lapb) +int lapb_t1timer_running(struct lapb_cb *lapb) { return timer_pending(&lapb->t1timer); } static void lapb_t2timer_expiry(unsigned long param) { - lapb_cb *lapb = (lapb_cb *)param; + struct lapb_cb *lapb = (struct lapb_cb *)param; if (lapb->condition & LAPB_ACK_PENDING_CONDITION) { lapb->condition &= ~LAPB_ACK_PENDING_CONDITION; @@ -86,7 +86,7 @@ static void lapb_t2timer_expiry(unsigned long param) static void lapb_t1timer_expiry(unsigned long param) { - lapb_cb *lapb = (lapb_cb *)param; + struct lapb_cb *lapb = (struct lapb_cb *)param; switch (lapb->state) { -- cgit v1.2.3