From: Florian Forster Date: Wed, 27 May 2009 13:03:12 +0000 (+0200) Subject: dns plugin: Fix a compile warning. X-Git-Tag: collectd-4.8.0~106 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=722d00817c110d532b38504088cc9847d8eee9ed;p=collectd.git dns plugin: Fix a compile warning. --- diff --git a/src/dns.c b/src/dns.c index bf341a7a..74fab98d 100644 --- a/src/dns.c +++ b/src/dns.c @@ -182,7 +182,7 @@ static void dns_child_callback (const rfc1035_header_t *dns) int skip = 0; if (!select_numeric_qtype) { - char *str = qtype_str(dns->qtype); + const char *str = qtype_str(dns->qtype); if ((str == NULL) || (str[0] == '#')) skip = 1; }