X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=f3280c0bed9f65ef37d3e8e554be640ca36ab83d;hb=106e2016957fe53e4d249f1352bb5a7ec9caa76b;hp=bf341a7a8683cc00ac28ede31f0e57b29e45c454;hpb=442f435a3d57762d7db6ed23307e3e32478e68be;p=collectd.git diff --git a/src/dns.c b/src/dns.c index bf341a7a..f3280c0b 100644 --- a/src/dns.c +++ b/src/dns.c @@ -1,6 +1,7 @@ /** * collectd - src/dns.c * Copyright (C) 2006,2007 Florian octo Forster + * Copyright (C) 2009 Mirko Buffoni * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,6 +18,7 @@ * * Authors: * Florian octo Forster + * Mirko Buffoni **/ #define _BSD_SOURCE @@ -182,7 +184,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; } @@ -232,7 +234,7 @@ static void *dns_child_loop (void __attribute__((unused)) *dummy) } /* Passing `pcap_device == NULL' is okay and the same as passign "any" */ - DEBUG ("Creating PCAP object.."); + DEBUG ("dns plugin: Creating PCAP object.."); pcap_obj = pcap_open_live ((pcap_device != NULL) ? pcap_device : "any", PCAP_SNAPLEN, 0 /* Not promiscuous */,