Skip to content
Browse files

- fixed bug when appending timer to a timer process.

  Reported and debugged by Ovidiu Sas
  • Loading branch information...
1 parent ca6e9a5 commit 0c733836b1a49f7cb977e7191e390eaa93bebb32 bogdan_iancu committed Sep 9, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 timer.c
View
10 timer.c
@@ -275,8 +275,8 @@ void* register_timer_process(timer_function f,void* param,unsigned int interval,
}
-int append_timer_to_process(timer_function f,void* param,unsigned int interval,
- void *timer)
+int append_timer_to_process( timer_function f, void* param,
+ unsigned int interval, void *timer)
{
struct sr_timer_process* tpl = (struct sr_timer_process*)timer;
struct sr_timer* t;
@@ -294,8 +294,8 @@ int append_timer_to_process(timer_function f,void* param,unsigned int interval,
}
-int append_utimer_to_process(utimer_function f,void* param,unsigned int interval,
- void *timer)
+int append_utimer_to_process( utimer_function f, void* param,
+ unsigned int interval, void *timer)
{
struct sr_timer_process* tpl = (struct sr_timer_process*)timer;
struct sr_timer* t;
@@ -308,7 +308,7 @@ int append_utimer_to_process(utimer_function f,void* param,unsigned int interval
return -1;
/* insert it into the list*/
t->next = tpl->utimer_list;
- tpl->timer_list = t;
+ tpl->utimer_list = t;
return 0;
}

0 comments on commit 0c73383

Please sign in to comment.
Something went wrong with that request. Please try again.