s/sliepen.warande.net/sliepen.eu.org/g
[tinc] / src / event.c
index d11f91c..295e28f 100644 (file)
@@ -1,7 +1,7 @@
 /*
     event.c -- event queue
-    Copyright (C) 2002 Guus Sliepen <guus@sliepen.warande.net>,
-                  2002 Ivo Timmermans <itimmermans@bigfoot.com>
+    Copyright (C) 2002 Guus Sliepen <guus@sliepen.eu.org>,
+                  2002 Ivo Timmermans <ivo@o2w.nl>
 
     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,7 +17,7 @@
     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.1 2002/02/11 10:05:58 guus Exp $
+    $Id: event.c,v 1.1.4.3 2002/06/21 10:11:12 guus Exp $
 */
 
 #include "config.h"
@@ -34,6 +34,7 @@
 #include "system.h"
 
 avl_tree_t *event_tree;
+extern time_t now;
 
 int id;
 
@@ -98,7 +99,7 @@ cp
   if(event_tree->head)
   {
     event = (event_t *)event_tree->head->data;
-    if(event->time < time(NULL))
+    if(event->time < now)
     {
       avl_delete(event_tree, event);
       return event;