diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-23 14:16:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:43 -0400 |
commit | e6f689db51a789807edede411b32eb7c9e457948 (patch) | |
tree | 6ba28587853721dc617d7f71ab622ac54eb4cd9d /net/ipv4 | |
parent | 9afdb00c80b0b9c20435ce690b5287fa2434ef44 (diff) |
[NETFILTER]: Use setup_timer
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_ULOG.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/netfilter/ipt_ULOG.c b/net/ipv4/netfilter/ipt_ULOG.c index 57f51af35727..d26bbd2daaa9 100644 --- a/net/ipv4/netfilter/ipt_ULOG.c +++ b/net/ipv4/netfilter/ipt_ULOG.c | |||
@@ -376,11 +376,8 @@ static int __init ipt_ulog_init(void) | |||
376 | } | 376 | } |
377 | 377 | ||
378 | /* initialize ulog_buffers */ | 378 | /* initialize ulog_buffers */ |
379 | for (i = 0; i < ULOG_MAXNLGROUPS; i++) { | 379 | for (i = 0; i < ULOG_MAXNLGROUPS; i++) |
380 | init_timer(&ulog_buffers[i].timer); | 380 | setup_timer(&ulog_buffers[i].timer, ulog_timer, i); |
381 | ulog_buffers[i].timer.function = ulog_timer; | ||
382 | ulog_buffers[i].timer.data = i; | ||
383 | } | ||
384 | 381 | ||
385 | nflognl = netlink_kernel_create(NETLINK_NFLOG, ULOG_MAXNLGROUPS, NULL, | 382 | nflognl = netlink_kernel_create(NETLINK_NFLOG, ULOG_MAXNLGROUPS, NULL, |
386 | THIS_MODULE); | 383 | THIS_MODULE); |