diff options
Diffstat (limited to 'test/src/mtx.c')
-rw-r--r-- | test/src/mtx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/src/mtx.c b/test/src/mtx.c index 924ba28..b691b48 100644 --- a/test/src/mtx.c +++ b/test/src/mtx.c @@ -9,7 +9,7 @@ mtx_init(mtx_t *mtx) { #ifdef _WIN32 if (!InitializeCriticalSectionAndSpinCount(&mtx->lock, _CRT_SPINCOUNT)) { - return (true); + return true; } #elif (defined(JEMALLOC_OS_UNFAIR_LOCK)) mtx->lock = OS_UNFAIR_LOCK_INIT; @@ -19,16 +19,16 @@ mtx_init(mtx_t *mtx) { pthread_mutexattr_t attr; if (pthread_mutexattr_init(&attr) != 0) { - return (true); + return true; } pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_DEFAULT); if (pthread_mutex_init(&mtx->lock, &attr) != 0) { pthread_mutexattr_destroy(&attr); - return (true); + return true; } pthread_mutexattr_destroy(&attr); #endif - return (false); + return false; } void |