w32 scond: reorder variable declarations and statements for ancient compilers

This commit is contained in:
zeromus 2016-09-02 01:15:26 +00:00
parent 538442861b
commit 8f6bfd2808
1 changed files with 2 additions and 2 deletions

View File

@ -396,11 +396,11 @@ void scond_wait(scond_t *cond, slock_t *lock)
/* add ourselves to a queue of waiting threads */
struct QueueEntry myentry;
myentry.next = NULL;
struct QueueEntry** ptr = &cond->head;
struct QueueEntry** ptr = &cond->head;
while(*ptr) /* walk to the end of the linked list */
ptr = &((*ptr)->next);
*ptr = &myentry;
myentry.next = NULL;
cond->waiters++;