diff options
Diffstat (limited to 'dns/powerdns-devel/files/patch-pdns_iputils_hh')
-rw-r--r-- | dns/powerdns-devel/files/patch-pdns_iputils_hh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/dns/powerdns-devel/files/patch-pdns_iputils_hh b/dns/powerdns-devel/files/patch-pdns_iputils_hh index 1dcd09077f33..e69de29bb2d1 100644 --- a/dns/powerdns-devel/files/patch-pdns_iputils_hh +++ b/dns/powerdns-devel/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; |