Просмотр исходного кода

check_disk: Remove unused status variable

We didn't actually use the exit status provided by pthread_join(3) for
anything.
Holger Weiss 11 лет назад
Родитель
Сommit
fb6f4218d9
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      plugins/check_disk.c

+ 1 - 2
plugins/check_disk.c

@@ -996,7 +996,6 @@ stat_path (struct parameter_list *p)
 {
 #ifdef HAVE_PTHREAD_H
   pthread_t stat_thread;
-  int status;
   int statdone = 0;
   int timer = timeout_interval;
   struct timespec req, rem;
@@ -1014,7 +1013,7 @@ stat_path (struct parameter_list *p)
     }
   }
   if (statdone == 1) {
-    pthread_join(stat_thread, (void *)&status);
+    pthread_join(stat_thread, NULL);
   } else {
     pthread_detach(stat_thread);
     if (verbose >= 3)