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-15 13:10: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-15 13:10:23 +0000
commita944cf07400e78ac17f559dd41a670427648c258 (patch)
tree6c65a226050854e4b86db13f53f5b40d2527c108 /src/sync-ftfw.c
parent369a532132e9c9f19e0dd07d2e2c554c92c70f67 (diff)
downloadconntrack-tools-a944cf07400e78ac17f559dd41a670427648c258.tar.gz
conntrack-tools-a944cf07400e78ac17f559dd41a670427648c258.zip
Max Kellermann <max@duempel.org>:
set the return type of the parse functions to "void"
Diffstat (limited to 'src/sync-ftfw.c')
-rw-r--r--src/sync-ftfw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sync-ftfw.c b/src/sync-ftfw.c
index 0d57f36..63fd4b2 100644
--- a/src/sync-ftfw.c
+++ b/src/sync-ftfw.c
@@ -87,9 +87,8 @@ static void do_alive_alarm(struct alarm_list *a, void *data)
{
tx_queue_add_ctlmsg(NET_F_ALIVE, 0, 0);
- init_alarm(&alive_alarm);
+ init_alarm(&alive_alarm, NULL, do_alive_alarm);
set_alarm_expiration(&alive_alarm, 1, 0);
- set_alarm_function(&alive_alarm, do_alive_alarm);
add_alarm(&alive_alarm);
}
@@ -111,9 +110,8 @@ static int ftfw_init()
INIT_LIST_HEAD(&rs_list);
/* XXX: alive message expiration configurable */
- init_alarm(&alive_alarm);
+ init_alarm(&alive_alarm, NULL, do_alive_alarm);
set_alarm_expiration(&alive_alarm, 1, 0);
- set_alarm_function(&alive_alarm, do_alive_alarm);
add_alarm(&alive_alarm);
return 0;