X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_dns.c;h=7b20e139c4cb0ac862f52b96608d56100834cab5;hb=733fc645b6389d1f42aef8f1c1631f1db7d58196;hp=faa917f84396f3c6036ff2b98d9e3182bde9d2de;hpb=a396da422740caf336a6d594515e8d80de6f440a;p=collectd.git diff --git a/src/utils_dns.c b/src/utils_dns.c index faa917f8..7b20e139 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -166,8 +166,8 @@ static ip_list_t *IgnoreList; #if HAVE_PCAP_H static void (*Callback)(const rfc1035_header_t *); -static int query_count_intvl = 0; -static int query_count_total = 0; +static int query_count_intvl; +static int query_count_total; #ifdef __OpenBSD__ static struct bpf_timeval last_ts; #else @@ -267,7 +267,7 @@ static int rfc1035NameUnpack(const char *buf, size_t sz, off_t *off, char *name, off_t no = 0; unsigned char c; size_t len; - static int loop_detect = 0; + static int loop_detect; if (loop_detect > 2) return 4; /* compression loop */ if (ns == 0)