From: Bert Hubert Date: Mon, 30 Jan 2006 15:36:45 +0000 (+0000) Subject: fix min/max types - freebsd went to 64 bit time_t in 6.0 X-Git-Tag: pdns-2.9.20~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c14b6b293c16d378030b161c1792808d8f836b27;p=thirdparty%2Fpdns.git fix min/max types - freebsd went to 64 bit time_t in 6.0 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@564 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsscope.cc b/pdns/dnsscope.cc index c3abe7c587..9ce2a52264 100644 --- a/pdns/dnsscope.cc +++ b/pdns/dnsscope.cc @@ -59,8 +59,8 @@ try try { MOADNSParser mdp((const char*)pr.d_payload, pr.d_len); - lowestTime=min(lowestTime, pr.d_pheader.ts.tv_sec); - highestTime=max(highestTime, pr.d_pheader.ts.tv_sec); + lowestTime=min((time_t)lowestTime, (time_t)pr.d_pheader.ts.tv_sec); + highestTime=max((time_t)highestTime, (time_t)pr.d_pheader.ts.tv_sec); string name=mdp.d_qname+"|"+DNSRecordContent::NumberToType(mdp.d_qtype);