libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 002ebb63f39ffcf75772d179bcf0e4bf7e7c00ce
parent 583dc11b22fd086a389399a019363be7f44c70fe
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue,  1 Apr 2014 07:23:33 +0000

fix macros for pthread mutex

Diffstat:
Msrc/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 @@ -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.