]> granicus.if.org Git - pdns/commitdiff
fix min/max types - freebsd went to 64 bit time_t in 6.0
authorBert Hubert <bert.hubert@netherlabs.nl>
Mon, 30 Jan 2006 15:36:45 +0000 (15:36 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Mon, 30 Jan 2006 15:36:45 +0000 (15:36 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@564 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnsscope.cc

index c3abe7c587d624a5c38d74c1f0ea932dacf73bd1..9ce2a522644099c289fc113d4044783ca89b3f75 100644 (file)
@@ -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);