summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2014-11-30 10:30:36 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2014-11-30 10:30:36 (GMT)
commitc0e6a6935bf8ea50f85a41b281dded815a8e083d (patch)
treeac056bcf5d0799cae91ea3d2dad5c30b7762fac4
parent66f43f99340f7e77d6feb0a6dc86302124bd8db2 (diff)
downloadmonitoring-plugins-c0e6a69.tar.gz
check_disk: Remove unused status variable
We didn't actually use the exit status provided by pthread_join(3) for anything.
-rw-r--r--plugins/check_disk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 6dbaab4..75f8a9a 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -974,7 +974,6 @@ stat_path (struct parameter_list *p)
974{ 974{
975#ifdef HAVE_PTHREAD_H 975#ifdef HAVE_PTHREAD_H
976 pthread_t stat_thread; 976 pthread_t stat_thread;
977 int status;
978 int statdone = 0; 977 int statdone = 0;
979 int timer = timeout_interval; 978 int timer = timeout_interval;
980 struct timespec req, rem; 979 struct timespec req, rem;
@@ -992,7 +991,7 @@ stat_path (struct parameter_list *p)
992 } 991 }
993 } 992 }
994 if (statdone == 1) { 993 if (statdone == 1) {
995 pthread_join(stat_thread, (void *)&status); 994 pthread_join(stat_thread, NULL);
996 } else { 995 } else {
997 pthread_detach(stat_thread); 996 pthread_detach(stat_thread);
998 if (verbose >= 3) 997 if (verbose >= 3)