]> granicus.if.org Git - pdns/commitdiff
Silence a GCC 6.2 compiler warning
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Sep 2016 15:09:11 +0000 (17:09 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Thu, 20 Oct 2016 08:05:00 +0000 (10:05 +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;