]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
cert validation cache: Fixes to LruMap template class to build on amd64-CentOS-5.3
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 14 Dec 2012 11:11:16 +0000 (13:11 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 14 Dec 2012 11:11:16 +0000 (13:11 +0200)
src/base/LruMap.h

index a5888baffb3a01e72847eb6ebe33041f825e18dc..f018b70b413273c98402499453db46b8f849723b 100644 (file)
@@ -110,7 +110,7 @@ LruMap<EntryValue, EntryCost>::findEntry(const char *key, LruMap::MapIterator &i
     index.erase(i->second);
     i->second = index.begin();
 
-    LruMap::Entry *e = *i->second;
+    Entry *e = *i->second;
 
     if (e && expired(*e)) {
         del(i);
@@ -122,9 +122,9 @@ template <class EntryValue, size_t EntryCost>
 EntryValue *
 LruMap<EntryValue, EntryCost>::get(const char *key)
 {
-    LruMap::MapIterator i;
+    MapIterator i;
     findEntry(key, i);
-    LruMap::Entry *e = *i->second;
+    Entry *e = *i->second;
     if (i != storage.end()) {
         touch(i);
         return e->value;
@@ -176,7 +176,7 @@ template <class EntryValue, size_t EntryCost>
 bool
 LruMap<EntryValue, EntryCost>::del(const char *key)
 {
-    LruMap::MapIterator i;
+    MapIterator i;
     findEntry(key, i);
     return del(i);
 }
@@ -186,7 +186,7 @@ void
 LruMap<EntryValue, EntryCost>::trim()
 {
     while (memLimit() > 0 && size() >= memLimit()) {
-        LruMap::QueueIterator i = index.end();
+        QueueIterator i = index.end();
         --i;
         if (i != index.end()) {
             del((*i)->key.c_str());