From: Remi Gacogne Date: Wed, 25 Oct 2017 12:53:13 +0000 (+0200) Subject: rec: Place CacheEntry and CacheKey into a unique namespace X-Git-Tag: rec-4.1.0-rc2~23^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f984e703f83fc7df85f384b27d45b4dea66b2d78;p=pdns rec: Place CacheEntry and CacheKey into a unique namespace --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index a1c1f3c4d..8f78ac648 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -898,6 +898,7 @@ bool SyncRes::doCNAMECacheCheck(const DNSName &qname, const QType &qtype, vector return false; } +namespace { struct CacheEntry { vector records; @@ -914,6 +915,7 @@ struct CacheKey } }; typedef map tcache_t; +} static void reapRecordsFromNegCacheEntryForValidation(tcache_t& tcache, const vector& records) {