diff options
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-20 23:51:23 +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-20 23:51:23 +0000 |
commit | bcae271764d18e570a5fca382eeea748add4af62 (patch) | |
tree | 27dd1b721b8635145aafe17dbec7cc83d25a4cf1 /src/cache_timer.c | |
parent | 00ad2e9e1c6cf9e14c76660f2b748247c1f4bd83 (diff) |
Based on patch from Max Kellermann <max@duempel.org>:
merge mod_alarm() into add_alarm(), remove alarm_set_expiration()
Diffstat (limited to 'src/cache_timer.c')
-rw-r--r-- | src/cache_timer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cache_timer.c b/src/cache_timer.c index 0fbba14..86bb8fc 100644 --- a/src/cache_timer.c +++ b/src/cache_timer.c @@ -37,14 +37,13 @@ static void timer_add(struct us_conntrack *u, void *data) struct alarm_list *alarm = data; init_alarm(alarm, u, timeout); - set_alarm_expiration(alarm, CONFIG(cache_timeout), 0); - add_alarm(alarm); + add_alarm(alarm, CONFIG(cache_timeout), 0); } static void timer_update(struct us_conntrack *u, void *data) { struct alarm_list *alarm = data; - mod_alarm(alarm, CONFIG(cache_timeout), 0); + add_alarm(alarm, CONFIG(cache_timeout), 0); } static void timer_destroy(struct us_conntrack *u, void *data) |