mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-10 01:00:03 -04:00
check_disk: Remove unused status variable
We didn't actually use the exit status provided by pthread_join(3) for anything.
This commit is contained in:
parent
66f43f9934
commit
c0e6a6935b
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue