X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=3e80e8690efa3360c99a2e4a34509b93a76a23ca;hb=0a8741b9061f8df4a78a448c021612db06e17425;hp=e0b8452f4331f5f32b383f05c15ca90d6206f112;hpb=7adc8768ee5f7276d1964da6d268effba557d3a5;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index e0b8452f..3e80e869 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -527,7 +527,7 @@ handle_ip(const struct ip *ip, int len) return (0); if (IPPROTO_UDP != ip->ip_p) return 0; - memcpy(buf, (void *) ip + offset, len - offset); + memcpy(buf, ((char *)ip) + offset, len - offset); if (0 == handle_udp((struct udphdr *) buf, len - offset)) return 0; return 1; @@ -756,10 +756,10 @@ const char *qtype_str(int t) case ns_t_a6: return ("A6"); case ns_t_dname: return ("DNAME"); case ns_t_sink: return ("SINK"); - case ns_t_apl: return ("APL"); case ns_t_tsig: return ("TSIG"); # endif # if __NAMESER >= 20090302 + case ns_t_apl: return ("APL"); case ns_t_ds: return ("DS"); case ns_t_sshfp: return ("SSHFP"); case ns_t_ipseckey: return ("IPSECKEY");