/*
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
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"
#include "system.h"
avl_tree_t *event_tree;
+extern time_t now;
int id;
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;