]> granicus.if.org Git - pdns/commitdiff
fix speedtest and dnsbulktest build by adding std:: namespace where relevant
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 2 Sep 2011 09:34:28 +0000 (09:34 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 2 Sep 2011 09:34:28 +0000 (09:34 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2255 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsbulktest.cc
pdns/speedtest.cc

index 04c55c20e9d38856245d857b2180b78b121eb7ff..3a876a7e2d23bed8ba458f1b6d0957c9928d6d1f 100644 (file)
@@ -59,7 +59,7 @@ struct SendReceive
     connect(d_socket, (struct sockaddr*)&remote, remote.getSocklen());
     d_oks = d_errors = d_nodatas = d_nxdomains = d_unknowns = 0;
     d_receiveds = d_receiveerrors = d_senderrors = 0;
-    for(unsigned int id =0 ; id < numeric_limits<uint16_t>::max(); ++id) 
+    for(unsigned int id =0 ; id < std::numeric_limits<uint16_t>::max(); ++id) 
       d_idqueue.push_back(id);
   }
   
index c9db17d6d2807158771faffced63d1b04c7677dc..98a5885d1554b706a638fa2c7deaf7a21f381dc3 100644 (file)
@@ -549,7 +549,7 @@ struct ParsePacketTest
       // supplant
       for(tcache_t::iterator i=tcache.begin();i!=tcache.end();++i) {
         if(i->second.size() > 1) {  // need to group the ttl to be the minimum of the RRSET (RFC 2181, 5.2)
-          uint32_t lowestTTL=numeric_limits<uint32_t>::max();
+          uint32_t lowestTTL=std::numeric_limits<uint32_t>::max();
           for(tcache_t::value_type::second_type::iterator j=i->second.begin(); j != i->second.end(); ++j)
             lowestTTL=min(lowestTTL, j->ttl);