X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fping.c;h=c70096c76a76037fec1a7f70a9e70d47e215ec58;hb=27a47fc62d90a115d7a00753a06ffab71e92f487;hp=ab1459e3a938544d29fab7b2c7777205b3b48f1f;hpb=9e7b3a035836474cb4af253b248de30d5eb97f4d;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) {