From 0bf601e539b37a47c59973bbb816486482b0b16c Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Tue, 4 Dec 2012 13:44:00 +0100 Subject: fix conntimer event setup --- gg_sniff/pcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c index e66a6d5..4d62791 100644 --- a/gg_sniff/pcap.c +++ b/gg_sniff/pcap.c @@ -303,7 +303,7 @@ cb_conntimer(int fd, short why, void *data) } gg_log_debug("user: ev_timer leaving with %d active connections and %d active nodes", i, _cap.net->node_count); - if (event_add(_cap.conntimer_ev, &_cap.conntimer_tv) == -1) + if (evtimer_add(_cap.conntimer_ev, &_cap.conntimer_tv) == -1) gg_log_fatal("user: event_add conntimer failed : %s", strerror(errno)); } -- cgit v1.2.3-59-g8ed1b