summaryrefslogtreecommitdiff
path: root/src/alarm.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-14 14:24:09 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-02-14 14:24:09 +0000
commit4590cc9638d39cd189724915fc3d4763a52eb934 (patch)
tree62fe134519dd7366422d1dce139fd4ec940c782d /src/alarm.c
parent6b5befe9cde1a4c46bb0421cca9c659c732d40e1 (diff)
downloadconntrack-tools-4590cc9638d39cd189724915fc3d4763a52eb934.tar.gz
conntrack-tools-4590cc9638d39cd189724915fc3d4763a52eb934.zip
From: Max Kellermann <max@duempel.org>
make alarm_run_queue a local variable
Diffstat (limited to 'src/alarm.c')
-rw-r--r--src/alarm.c3
1 files changed, 2 insertions, 1 deletions
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 <limits.h>
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);