X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Futils%2Fdns%2Fdns.c;h=981828d73f527b9ff6c193808ec637912bd441ca;hb=21c84cec32921e6de8feaa5496f337496379ea23;hp=fb5cb4fba6bffed9aac89df7b3e400f890fa8e75;hpb=45b59919cd22250b6a64e17af6c4c9ca218b401c;p=collectd.git diff --git a/src/utils/dns/dns.c b/src/utils/dns/dns.c index fb5cb4fb..981828d7 100644 --- a/src/utils/dns/dns.c +++ b/src/utils/dns/dns.c @@ -466,7 +466,7 @@ static int handle_ipv6(struct ip6_hdr *ipv6, int len) { return 1; /* Success */ } /* int handle_ipv6 */ -/* #endif HAVE_IPV6 */ + /* #endif HAVE_IPV6 */ #else /* if !HAVE_IPV6 */ static int handle_ipv6(__attribute__((unused)) void *pkg, @@ -837,7 +837,7 @@ const char *qtype_str(int t) { case 32769: return "DLV"; default: - snprintf(buf, sizeof(buf), "#%i", t); + ssnprintf(buf, sizeof(buf), "#%i", t); return buf; } /* switch (t) */ } @@ -856,7 +856,7 @@ const char *opcode_str(int o) { case 5: return "Update"; default: - snprintf(buf, sizeof(buf), "Opcode%d", o); + ssnprintf(buf, sizeof(buf), "Opcode%d", o); return buf; } } @@ -904,7 +904,7 @@ const char *rcode_str(int rcode) { case 18: return "BADTIME"; default: - snprintf(buf, sizeof(buf), "RCode%i", rcode); + ssnprintf(buf, sizeof(buf), "RCode%i", rcode); return buf; } } /* const char *rcode_str (int rcode) */