From: Florian Forster Date: Thu, 5 Apr 2007 18:40:21 +0000 (+0200) Subject: plugin.c: Take in account that `pthread_t' is a pointer under Darwin. X-Git-Tag: collectd-4.0.0-rc4~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7094b9ed315d61e7b027a5641f34c2ad367bbe30;p=collectd.git plugin.c: Take in account that `pthread_t' is a pointer under Darwin. --- diff --git a/src/plugin.c b/src/plugin.c index 7aef8737..cf4af74a 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -266,7 +266,7 @@ static void stop_threads (void) { ERROR ("plugin: stop_threads: pthread_join failed."); } - read_threads[i] = -1; + read_threads[i] = (pthread_t) 0; } sfree (read_threads); read_threads_num = 0;