diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-30 11:30:36 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-11-30 11:30:36 +0100 |
commit | c0e6a6935bf8ea50f85a41b281dded815a8e083d (patch) | |
tree | ac056bcf5d0799cae91ea3d2dad5c30b7762fac4 /plugins | |
parent | 66f43f99340f7e77d6feb0a6dc86302124bd8db2 (diff) | |
download | monitoring-plugins-c0e6a6935bf8ea50f85a41b281dded815a8e083d.tar.gz |
check_disk: Remove unused status variable
We didn't actually use the exit status provided by pthread_join(3) for
anything.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 6dbaab46..75f8a9ac 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) |