]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ev_entry is a C++ class these days, don't attempt using it as a struct
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 13:11:49 +0000 (15:11 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 13:11:49 +0000 (15:11 +0200)
src/event.cc

index 66bd0432b2b8a1d6f370d52291af15e70a843640..2cce5b57a9592c4c68277499e9b534dae1850a13 100644 (file)
@@ -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 */