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-01-15 13:50:41 +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-01-15 13:50:41 +0000
commit7fcc1fdfaa157f8f8233f3ccbeb97bb7ea7637df (patch)
tree7c34d5e743bcbb8ab46eca155e2661d6f64a6d31 /src/alarm.c
parent07a1957516495a89e68baefd808f9db4eea03cd5 (diff)
downloadconntrack-tools-7fcc1fdfaa157f8f8233f3ccbeb97bb7ea7637df.tar.gz
conntrack-tools-7fcc1fdfaa157f8f8233f3ccbeb97bb7ea7637df.zip
Max Kellermann <max@duempel.org>:
use add_alarm() in mod_alarm()
Diffstat (limited to 'src/alarm.c')
-rw-r--r--src/alarm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/alarm.c b/src/alarm.c
index 16e7a14..3467e7b 100644
--- a/src/alarm.c
+++ b/src/alarm.c
@@ -65,13 +65,9 @@ void del_alarm(struct alarm_list *alarm)
void mod_alarm(struct alarm_list *alarm, unsigned long sc, unsigned long usc)
{
- struct timeval tv;
-
list_del(&alarm->head);
set_alarm_expiration(alarm, sc, usc);
- gettimeofday(&tv, NULL);
- timeradd(&alarm->tv, &tv, &alarm->tv);
- __add_alarm(alarm);
+ add_alarm(alarm);
}
int get_next_alarm(struct timeval *tv, struct timeval *next_alarm)