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);
}
// 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);