]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Silence a GCC 6.2 compiler warning 4500/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Sep 2016 15:09:11 +0000 (17:09 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 12 Oct 2016 07:49:57 +0000 (09:49 +0200)
pdns/recpacketcache.cc

index 811d0a763d1289f206329e1220e9dc4837edd5ba..1d24831795c796248be2d8294e93789c00a94cc3 100644 (file)
@@ -211,7 +211,7 @@ uint64_t RecursorPacketCache::size()
 uint64_t RecursorPacketCache::bytes()
 {
   uint64_t sum=0;
-  for(const struct Entry& e :  d_packetCache) {
+  for(const auto& e :  d_packetCache) {
     sum += sizeof(e) + e.d_packet.length() + 4;
   }
   return sum;