summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>2002-09-28 20:07:09 -0300
committerDavid S. Miller <davem@nuts.ninka.net>2002-09-28 20:07:09 -0300
commita134be24c2012076738593dc3d299765f4d40be3 (patch)
tree6aa5aeb39dec91fa715aa75d020a16084dfaa92f /net/lapb/lapb_timer.c
parent2150b1f5e5c41d4f48f1712c82e068de95c9bfe3 (diff)
o LAPB: use refcounts and rwlock to protect lapb_cb and list
Also some CodingStyle code reformatting. Ah, killed the typedef for lapb_cb.
Diffstat (limited to 'net/lapb/lapb_timer.c')
-rw-r--r--net/lapb/lapb_timer.c14
1 files changed, 7 insertions, 7 deletions
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) {