(Sorry; had a couple changes queued.)
}
- 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;
}
now = time(NULL);
- init_events();
+ init_tevents();
init_connections();
init_subnets();
init_nodes();
exit_subnets();
exit_nodes();
exit_connections();
- exit_events();
+ exit_tevents();
execute_script("tinc-down", envp);
if(n->mtuevent) {
tevent_del(n->mtuevent);
- free_event(n->mtuevent);
+ free_tevent(n->mtuevent);
}
if(n->hostname)