From: Scott Lamb Date: Tue, 27 Feb 2007 01:30:57 +0000 (+0000) Subject: A couple missed tevent things. X-Git-Tag: release-1.1pre1~198 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=834290b00f859412ee48bef454a07083cb727130;p=oweals%2Ftinc.git A couple missed tevent things. (Sorry; had a couple changes queued.) --- diff --git a/src/net.c b/src/net.c index 9156147..e9c7020 100644 --- a/src/net.c +++ b/src/net.c @@ -422,14 +422,14 @@ int main_loop(void) } - while((event = get_expired_event())) { + while((event = get_expired_tevent())) { event->handler(event->data); - free_event(event); + free_tevent(event); } if(sigalrm) { logger(LOG_INFO, _("Flushing event queue")); - flush_events(); + flush_tevents(); sigalrm = false; } diff --git a/src/net_setup.c b/src/net_setup.c index 84171e7..0c399bb 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -526,7 +526,7 @@ bool setup_network_connections(void) now = time(NULL); - init_events(); + init_tevents(); init_connections(); init_subnets(); init_nodes(); @@ -604,7 +604,7 @@ void close_network_connections(void) exit_subnets(); exit_nodes(); exit_connections(); - exit_events(); + exit_tevents(); execute_script("tinc-down", envp); diff --git a/src/node.c b/src/node.c index ec6815a..d90e00a 100644 --- a/src/node.c +++ b/src/node.c @@ -108,7 +108,7 @@ void free_node(node_t *n) if(n->mtuevent) { tevent_del(n->mtuevent); - free_event(n->mtuevent); + free_tevent(n->mtuevent); } if(n->hostname)