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: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/alarm.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/alarm.c')
-rw-r--r--src/alarm.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/alarm.c b/src/alarm.c
index 2c65ef3..6edf68e 100644
--- a/src/alarm.c
+++ b/src/alarm.c
@@ -27,22 +27,13 @@
static LIST_HEAD(alarm_list);
-void set_alarm_function(struct alarm_list *t,
- void (*fcn)(struct alarm_list *a, void *data))
-{
- t->function = fcn;
-}
-
-void set_alarm_data(struct alarm_list *t, void *data)
-{
- t->data = data;
-}
-
-void init_alarm(struct alarm_list *t)
+void init_alarm(struct alarm_list *t,
+ void *data,
+ void (*fcn)(struct alarm_list *a, void *data))
{
timerclear(&t->tv);
- t->data = 0;
- t->function = NULL;
+ t->data = data;
+ t->function = fcn;
}
void __add_alarm(struct alarm_list *alarm)