]> granicus.if.org Git - pdns/commitdiff
rec: Place CacheEntry and CacheKey into a unique namespace
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 Oct 2017 12:53:13 +0000 (14:53 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 25 Oct 2017 12:53:13 +0000 (14:53 +0200)
pdns/syncres.cc

index a1c1f3c4d3b2d60d08f25f2ddb54304418e11e33..8f78ac648af2e5e750797644c4aa068292669ab0 100644 (file)
@@ -898,6 +898,7 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector
   return false;
 }
 
+namespace {
 struct CacheEntry
 {
   vector<DNSRecord> records;
@@ -914,6 +915,7 @@ struct CacheKey
   }
 };
 typedef map<CacheKey, CacheEntry> tcache_t;
+}
 
 static void reapRecordsFromNegCacheEntryForValidation(tcache_t& tcache, const vector<DNSRecord>& records)
 {