diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/alarm.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -99,6 +99,7 @@ o remove unused prototypes in network.h o check if the received packet is large enough o introduce alarm_pending() o cleanup: use size_t instead of integer +o cleanup: remove unrequired initialization in the rbtree-based alarm version 0.9.5 (2007/07/29) ------------------------------ diff --git a/src/alarm.c b/src/alarm.c index 5013735..470efdd 100644 --- a/src/alarm.c +++ b/src/alarm.c @@ -105,7 +105,7 @@ calculate_next_run(struct timeval *cand, struct timeval * get_next_alarm_run(struct timeval *next_run) { - struct rb_node *node = alarm_root.rb_node; + struct rb_node *node; struct timeval tv; gettimeofday(&tv, NULL); @@ -122,7 +122,7 @@ get_next_alarm_run(struct timeval *next_run) struct timeval * do_alarm_run(struct timeval *next_run) { - struct rb_node *node = alarm_root.rb_node; + struct rb_node *node; struct alarm_block *this, *tmp; struct timeval tv; |