From: Henrik Nordstrom Date: Mon, 25 Jul 2011 13:11:49 +0000 (+0200) Subject: ev_entry is a C++ class these days, don't attempt using it as a struct X-Git-Tag: take08~55^2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb9f32a9740155c6d58f88b871742d37d54c23c6;p=thirdparty%2Fsquid.git ev_entry is a C++ class these days, don't attempt using it as a struct --- diff --git a/src/event.cc b/src/event.cc index 66bd0432b2..2cce5b57a9 100644 --- a/src/event.cc +++ b/src/event.cc @@ -239,7 +239,7 @@ int EventScheduler::checkEvents(int timeout) { - struct ev_entry *event = NULL; + ev_entry *event = NULL; if (NULL == tasks) return checkDelay(); @@ -292,7 +292,7 @@ void EventScheduler::dump(StoreEntry * sentry) { - struct ev_entry *e = tasks; + ev_entry *e = tasks; if (last_event_ran) storeAppendPrintf(sentry, "Last event to run: %s\n\n", last_event_ran); @@ -315,7 +315,7 @@ bool EventScheduler::find(EVH * func, void * arg) { - struct ev_entry *event; + ev_entry *event; for (event = tasks; event != NULL; event = event->next) { if (event->func == func && event->arg == arg) @@ -338,9 +338,9 @@ EventScheduler::schedule(const char *name, EVH * func, void *arg, double when, i // must fire in the submission order. We cannot use current_dtime for them // because it may decrease if system clock is adjusted backwards. const double timestamp = when > 0.0 ? current_dtime + when : 0; - struct ev_entry *event = new ev_entry(name, func, arg, timestamp, weight, cbdata); + ev_entry *event = new ev_entry(name, func, arg, timestamp, weight, cbdata); - struct ev_entry **E; + ev_entry **E; debugs(41, 7, HERE << "schedule: Adding '" << name << "', in " << when << " seconds"); /* Insert after the last event with the same or earlier time */