summaryrefslogtreecommitdiff
path: root/src/sync-ftfw.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-14 15:22:24 +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-14 15:22:24 +0000
commit6e5b6c91625fd431ac3d1339f55a4aa278ff2604 (patch)
tree79e087eebf878ff86bc4dd74292c97748f593b15 /src/sync-ftfw.c
parent94aa8b70f2e8cf7cf664d7c0e86a9ebc287010ef (diff)
downloadconntrack-tools-6e5b6c91625fd431ac3d1339f55a4aa278ff2604.tar.gz
conntrack-tools-6e5b6c91625fd431ac3d1339f55a4aa278ff2604.zip
improve alarm framework based on suggestions from Max Duempel
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r--src/sync-ftfw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index ac1b8b6..125e82e 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -88,7 +88,7 @@ static void do_alive_alarm(struct alarm_list *a, void *data)
tx_queue_add_ctlmsg(NET_F_ALIVE, 0, 0);
init_alarm(&alive_alarm);
- set_alarm_expiration_secs(&alive_alarm, 1);
+ set_alarm_expiration(&alive_alarm, 1, 0);
set_alarm_function(&alive_alarm, do_alive_alarm);
add_alarm(&alive_alarm);
}
@@ -112,7 +112,7 @@ static int ftfw_init()
/* XXX: alive message expiration configurable */
init_alarm(&alive_alarm);
- set_alarm_expiration_secs(&alive_alarm, 1);
+ set_alarm_expiration(&alive_alarm, 1, 0);
set_alarm_function(&alive_alarm, do_alive_alarm);
add_alarm(&alive_alarm);