X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdns.c;h=08a036924b77d07bf1b4e3a0ec818ca1291e26c8;hb=d8825859c7b31f068899c2d5f8a147ea1ef65750;hp=09082fcf1ff5682a955b756a6c3831f767bb02da;hpb=0eff156c7816507fa1865b76e948574dd320fae0;p=collectd.git diff --git a/src/dns.c b/src/dns.c index 09082fcf..08a03692 100644 --- a/src/dns.c +++ b/src/dns.c @@ -33,9 +33,7 @@ #include #include -#if HAVE_PCAP_BPF_H -# include -#endif +#include /* * Private data types @@ -230,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) {