From 002ebb63f39ffcf75772d179bcf0e4bf7e7c00ce Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 1 Apr 2014 07:23:33 +0000 Subject: [PATCH] fix macros for pthread mutex --- src/include/platform_interface.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/include/platform_interface.h b/src/include/platform_interface.h index 97c238a7..078e7285 100644 --- a/src/include/platform_interface.h +++ b/src/include/platform_interface.h @@ -176,7 +176,7 @@ typedef pthread_mutex_t MHD_mutex_; * @return #MHD_YES on success, #MHD_NO on failure */ #define MHD_mutex_destroy_(mutex) \ - ((0 == pthread_mutex_destroy ((mutex), NULL)) ? MHD_YES : MHD_NO) + ((0 == pthread_mutex_destroy ((mutex))) ? MHD_YES : MHD_NO) #elif defined(MHD_W32_MUTEX_) /** * Destroy previously created mutex. @@ -196,7 +196,7 @@ typedef pthread_mutex_t MHD_mutex_; * @return #MHD_YES on success, #MHD_NO on failure */ #define MHD_mutex_lock_(mutex) \ - ((0 == pthread_mutex_lock((mutex), NULL)) ? MHD_YES : MHD_NO) + ((0 == pthread_mutex_lock((mutex))) ? MHD_YES : MHD_NO) #elif defined(MHD_W32_MUTEX_) /** * Acquire lock on previously created mutex. @@ -218,7 +218,7 @@ typedef pthread_mutex_t MHD_mutex_; * mutex was not locked. */ #define MHD_mutex_trylock_(mutex) \ - ((0 == pthread_mutex_trylock((mutex), NULL)) ? MHD_YES : MHD_NO) + ((0 == pthread_mutex_trylock((mutex))) ? MHD_YES : MHD_NO) #elif defined(MHD_W32_MUTEX_) /** * Try to acquire lock on previously created mutex. @@ -238,7 +238,7 @@ typedef pthread_mutex_t MHD_mutex_; * @return #MHD_YES on success, #MHD_NO on failure */ #define MHD_mutex_unlock_(mutex) \ - ((0 == pthread_mutex_unlock((mutex), NULL)) ? MHD_YES : MHD_NO) + ((0 == pthread_mutex_unlock((mutex))) ? MHD_YES : MHD_NO) #elif defined(MHD_W32_MUTEX_) /** * Unlock previously created and locked mutex.