X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdns.c;h=bd6820fa6b24aa1b958581ed34d62b4a3d7d6ab1;hp=3ab456b507b3dc7c7fe8a4f5f6f9091387799b6e;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=a18496a4ac759552fd4dac1d2c661fb50285b1a1 diff --git a/src/dns.c b/src/dns.c index 3ab456b5..bd6820fa 100644 --- a/src/dns.c +++ b/src/dns.c @@ -57,7 +57,7 @@ static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); static int select_numeric_qtype = 1; #define PCAP_SNAPLEN 1460 -static char *pcap_device = NULL; +static char *pcap_device; static derive_t tr_queries; static derive_t tr_responses; @@ -66,7 +66,7 @@ static counter_list_t *opcode_list; static counter_list_t *rcode_list; static pthread_t listen_thread; -static int listen_thread_init = 0; +static int listen_thread_init; /* The `traffic' mutex if for `tr_queries' and `tr_responses' */ static pthread_mutex_t traffic_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t qtype_mutex = PTHREAD_MUTEX_INITIALIZER;