From: Scott Lamb Date: Tue, 27 Feb 2007 01:30:57 +0000 (+0000) Subject: A couple missed tevent things. X-Git-Tag: import-tinc-1.1~673 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=834290b00f859412ee48bef454a07083cb727130;p=meshlink A couple missed tevent things. (Sorry; had a couple changes queued.) --- diff --git a/src/net.c b/src/net.c index 9156147d..e9c7020a 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 84171e72..0c399bb6 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 ec6815a6..d90e00a0 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)