X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fping.c;h=203d22302c1fd688c2e4ff218d35741838de10dc;hb=d931e9e904f61e28013c01ee6903985d3c9f0ba8;hp=565ae99cd7e04c0f19513273e93660336e292982;hpb=6e41c3b1f024d7944e5e8010a87933555c662474;p=collectd.git diff --git a/src/ping.c b/src/ping.c index 565ae99c..203d2230 100644 --- a/src/ping.c +++ b/src/ping.c @@ -26,8 +26,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #include "utils_complain.h" #include @@ -69,14 +69,14 @@ typedef struct hostlist_s hostlist_t; /* * Private variables */ -static hostlist_t *hostlist_head = NULL; +static hostlist_t *hostlist_head; static int ping_af = PING_DEF_AF; -static char *ping_source = NULL; +static char *ping_source; #ifdef HAVE_OPING_1_3 -static char *ping_device = NULL; +static char *ping_device; #endif -static char *ping_data = NULL; +static char *ping_data; static int ping_ttl = PING_DEF_TTL; static double ping_interval = 1.0; static double ping_timeout = 0.9; @@ -84,8 +84,8 @@ static int ping_max_missed = -1; static pthread_mutex_t ping_lock = PTHREAD_MUTEX_INITIALIZER; static pthread_cond_t ping_cond = PTHREAD_COND_INITIALIZER; -static int ping_thread_loop = 0; -static int ping_thread_error = 0; +static int ping_thread_loop; +static int ping_thread_error; static pthread_t ping_thread_id; static const char *config_keys[] = {"Host", "SourceAddress", "AddressFamily",