X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=fe3b672a21d844b2190c80e7b2f7bffd9adb9b50;hb=3faf514fd9b869cadda0f895e14e5036313c7781;hp=95797f543ea67138e23c967645905354991e408e;hpb=483e801902bca3c779793224eddf3bb2749d7288;p=collectd.git diff --git a/src/dns.c b/src/dns.c index 95797f54..fe3b672a 100644 --- a/src/dns.c +++ b/src/dns.c @@ -228,7 +228,7 @@ static void *dns_child_loop (__attribute__((unused)) void *dummy) pcap_obj = pcap_open_live ((pcap_device != NULL) ? pcap_device : "any", PCAP_SNAPLEN, 0 /* Not promiscuous */, - (int) CDTIME_T_TO_MS (interval_g / 2), + (int) CDTIME_T_TO_MS (plugin_get_interval () / 2), pcap_error); if (pcap_obj == NULL) { @@ -286,7 +286,7 @@ static int dns_init (void) if (listen_thread_init != 0) return (-1); - status = pthread_create (&listen_thread, NULL, dns_child_loop, + status = plugin_thread_create (&listen_thread, NULL, dns_child_loop, (void *) 0); if (status != 0) {