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 7aef873..cf4af74 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;