/*
event.c -- event queue
- Copyright (C) 2002-2004 Guus Sliepen <guus@tinc-vpn.org>,
- 2002-2004 Ivo Timmermans <ivo@tinc-vpn.org>
+ Copyright (C) 2002-2006 Guus Sliepen <guus@tinc-vpn.org>,
+ 2002-2005 Ivo Timmermans
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
event = event_tree->head->data;
if(event->time < now) {
- avl_delete(event_tree, event);
+ event_del(event);
return event;
}
}