1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: rename variable wait

With older system headers (sys/wait.h) this shadows declaration.
This commit is contained in:
Zdenek Kabelac 2014-06-19 11:33:11 +02:00
parent 00af0d13c9
commit b193a3b09f

View File

@ -490,13 +490,13 @@ static int handle_connect(daemon_state s)
return 1;
}
static void reap(daemon_state s, int wait)
static void reap(daemon_state s, int waiting)
{
thread_state *last = s.threads, *ts = last->next;
void *rv;
while (ts) {
if (wait || !ts->active) {
if (waiting || !ts->active) {
pthread_join(ts->client.thread_id, &rv);
last->next = ts->next;
dm_free(ts);