diff options
Diffstat (limited to 'pthread_join.c')
-rw-r--r-- | pthread_join.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pthread_join.c b/pthread_join.c index 3804327..72a3a74 100644 --- a/pthread_join.c +++ b/pthread_join.c @@ -104,7 +104,7 @@ pthread_join (pthread_t thread, void **value_ptr) LeaveCriticalSection (&ptw32_thread_reuse_lock); - if (0 == result) + if (result == 0) { /* * The target thread is joinable and can't be reused before we join it. @@ -124,7 +124,7 @@ pthread_join (pthread_t thread, void **value_ptr) /* * Pthread_join is a cancelation point. * If we are canceled then our target thread must not be - * detached (destroyed) by us. This is guarranteed because + * detached (destroyed). This is guarranteed because * pthreadCancelableWait will not return if we * are canceled. */ |