From 4799f0d9be5658d18fe33ffbbde42ed4fc608ef3 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 14 Mar 2018 12:58:48 -0500 Subject: syntax updates --- include/compat/pthread.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/compat/pthread.h b/include/compat/pthread.h index 8edb806..19eea13 100644 --- a/include/compat/pthread.h +++ b/include/compat/pthread.h @@ -25,17 +25,16 @@ static BOOL CALLBACK _pthread_once_win32_cb(PINIT_ONCE once, PVOID param, PVOID { void (*cb) (void) = param; cb(); - return TRUE; + return TRUE; } static int pthread_once(pthread_once_t *once, void (*cb) (void)) { BOOL rc = InitOnceExecuteOnce(&once->once, _pthread_once_win32_cb, cb, NULL); - if (rc == 0) { + if (rc == 0) return -1; - } else { + else return 0; - } } #else -- cgit v1.2.3-55-g6feb