From 4590cc9638d39cd189724915fc3d4763a52eb934 Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org" Date: Thu, 14 Feb 2008 14:24:09 +0000 Subject: From: Max Kellermann make alarm_run_queue a local variable --- src/alarm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/alarm.c') diff --git a/src/alarm.c b/src/alarm.c index a3bdbe2..c86ce44 100644 --- a/src/alarm.c +++ b/src/alarm.c @@ -21,7 +21,6 @@ #include static struct rb_root alarm_root = RB_ROOT; -static LIST_HEAD(alarm_run_queue); void init_alarm(struct alarm_block *t, void *data, @@ -122,12 +121,14 @@ get_next_alarm_run(struct timeval *next_run) struct timeval * do_alarm_run(struct timeval *next_run) { + struct list_head alarm_run_queue; struct rb_node *node; struct alarm_block *this, *tmp; struct timeval tv; gettimeofday(&tv, NULL); + INIT_LIST_HEAD(&alarm_run_queue); for (node = rb_first(&alarm_root); node; node = rb_next(node)) { this = container_of(node, struct alarm_block, node); -- cgit v1.2.3