Code

plugin.c: Take in account that `pthread_t' is a pointer under Darwin.
authorFlorian Forster <octo@crystal.wlan.home.verplant.org>
Thu, 5 Apr 2007 18:40:21 +0000 (20:40 +0200)
committerFlorian Forster <octo@crystal.wlan.home.verplant.org>
Thu, 5 Apr 2007 18:40:21 +0000 (20:40 +0200)
src/plugin.c

index 7aef8737ebc52ae6f6b1ef5390e2a9ceed352f4b..cf4af74a34735904d88fbe5f17d68c366d48e129 100644 (file)
@@ -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;