diff options
Diffstat (limited to 'dns/powerdns/files')
-rw-r--r-- | dns/powerdns/files/patch-pdns_communicator_hh | 11 | ||||
-rw-r--r-- | dns/powerdns/files/patch-pdns_iputils_hh | 18 |
2 files changed, 11 insertions, 18 deletions
diff --git a/dns/powerdns/files/patch-pdns_communicator_hh b/dns/powerdns/files/patch-pdns_communicator_hh new file mode 100644 index 000000000000..e3a1ccfd395c --- /dev/null +++ b/dns/powerdns/files/patch-pdns_communicator_hh @@ -0,0 +1,11 @@ +--- pdns/communicator.hh 21 Jun 2003 09:59:08 -0000 1.5 ++++ pdns/communicator.hh 10 Jan 2004 15:47:47 -0000 +@@ -94,7 +94,7 @@ + + time_t earliest() + { +- time_t early=1<<31-1; // y2038 problem lurking here :-) ++ time_t early=(1<<31)-1; // y2038 problem lurking here :-) + for(d_nqueue_t::const_iterator i=d_nqueue.begin();i!=d_nqueue.end();++i) + early=min(early,i->next); + return early-time(0); diff --git a/dns/powerdns/files/patch-pdns_iputils_hh b/dns/powerdns/files/patch-pdns_iputils_hh index 1dcd09077f33..e69de29bb2d1 100644 --- a/dns/powerdns/files/patch-pdns_iputils_hh +++ b/dns/powerdns/files/patch-pdns_iputils_hh @@ -1,18 +0,0 @@ ---- pdns/iputils.hh.orig Sat Aug 30 16:27:48 2003 -+++ pdns/iputils.hh Mon Nov 10 17:27:02 2003 -@@ -51,10 +51,13 @@ - Netmask(const string &mask) - { - char *p; -- char bits=32; -+ u_int8_t bits=32; -+ d_mask=0xFFFFFFFF; -+ - if((p=strchr(mask.c_str(),'/'))) -- bits=atoi(p+1); -+ bits = (u_int8_t) atoi(p+1); - -+ if( bits < 32 ) - d_mask=~(0xFFFFFFFF>>bits); - - struct in_addr a; |