X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fping.c;h=c70096c76a76037fec1a7f70a9e70d47e215ec58;hb=dbf349ec8c0150a52a7bad5f8b9fc79a6201e2f6;hp=ab1459e3a938544d29fab7b2c7777205b3b48f1f;hpb=1d7439282ad415e7d1630598becae3109c7d2735;p=collectd.git diff --git a/src/ping.c b/src/ping.c index ab1459e3..c70096c7 100644 --- a/src/ping.c +++ b/src/ping.c @@ -354,7 +354,7 @@ static void *ping_thread (void *arg) /* {{{ */ * `ts_wait'. */ time_calc (&ts_wait, &ts_int, &tv_begin, &tv_end); - status = pthread_cond_timedwait (&ping_cond, &ping_lock, &ts_wait); + pthread_cond_timedwait (&ping_cond, &ping_lock, &ts_wait); if (ping_thread_loop <= 0) break; } /* while (ping_thread_loop > 0) */ @@ -379,7 +379,7 @@ static int start_thread (void) /* {{{ */ ping_thread_loop = 1; ping_thread_error = 0; - status = pthread_create (&ping_thread_id, /* attr = */ NULL, + status = plugin_thread_create (&ping_thread_id, /* attr = */ NULL, ping_thread, /* arg = */ (void *) 0); if (status != 0) {