X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fevent.c;h=4e0f6a090e70bd6d08602ee39f31c1d74c2863ff;hp=a91be86d86fb73b45f3fe95309bfe82e70b51d2e;hb=91f65c277483b47343b1b64d0f4edd497a8045a3;hpb=6f9f6779e6bd1dd7bb795b42dad550863a386ca8 diff --git a/src/event.c b/src/event.c index a91be86d..4e0f6a09 100644 --- a/src/event.c +++ b/src/event.c @@ -1,7 +1,7 @@ /* event.c -- event queue - Copyright (C) 2002 Guus Sliepen , - 2002 Ivo Timmermans + Copyright (C) 2002-2003 Guus Sliepen , + 2002-2003 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 @@ -17,28 +17,22 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: event.c,v 1.1.4.6 2002/09/09 22:32:30 guus Exp $ + $Id: event.c,v 1.1.4.10 2003/07/24 12:08:15 guus Exp $ */ -#include "config.h" - -#include -#include -#include -#include -#include -#include +#include "system.h" +#include "avl_tree.h" #include "event.h" - -#include "system.h" +#include "utils.h" +#include "xalloc.h" avl_tree_t *event_tree; extern time_t now; int id; -int event_compare(event_t *a, event_t *b) +static int event_compare(const event_t *a, const event_t *b) { if(a->time > b->time) return 1;