[monitoring-plugins] check_disk: Remove unused status variable
Holger Weiss
git at monitoring-plugins.org
Sun Nov 30 11:40:08 CET 2014
Module: monitoring-plugins
Branch: check-disk-thread
Commit: 8612dd8e1c5237585bd0ec0b6d79c5a821b5aa76
Author: Holger Weiss <holger at zedat.fu-berlin.de>
Date: Sun Nov 30 11:30:36 2014 +0100
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=8612dd8
check_disk: Remove unused status variable
We didn't actually use the exit status provided by pthread_join(3) for
anything.
---
plugins/check_disk.c | 3 +--
1 file changed, 1 insertion(+), 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)
{
#ifdef HAVE_PTHREAD_H
pthread_t stat_thread;
- int status;
int statdone = 0;
int timer = timeout_interval;
struct timespec req, rem;
@@ -992,7 +991,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)
More information about the Commits
mailing list