From: Hallvard Furuseth Date: Wed, 12 Jan 2011 14:25:37 +0000 (+0000) Subject: Fix ITS#6672: Do not return LDAP_MUTEX_LOCK(). X-Git-Tag: MIGRATION_CVS2GIT~212 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd640af54fcdad7fa9c85bfe0612b8a73232c0f9;p=openldap Fix ITS#6672: Do not return LDAP_MUTEX_LOCK(). It has type void. --- diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index 21e42f2965..f0b5f72f04 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -122,7 +122,7 @@ ldap_pvt_gmtime_lock( void ) # ifndef LDAP_R_COMPILE return 0; # else /* LDAP_R_COMPILE */ - return LDAP_MUTEX_LOCK( &ldap_int_gmtime_mutex ); + return ldap_pvt_thread_mutex_lock( &ldap_int_gmtime_mutex ); # endif /* LDAP_R_COMPILE */ } @@ -132,7 +132,7 @@ ldap_pvt_gmtime_unlock( void ) # ifndef LDAP_R_COMPILE return 0; # else /* LDAP_R_COMPILE */ - return LDAP_MUTEX_UNLOCK( &ldap_int_gmtime_mutex ); + return ldap_pvt_thread_mutex_unlock( &ldap_int_gmtime_mutex ); # endif /* LDAP_R_COMPILE */ } #endif /* !USE_GMTIME_R || !USE_LOCALTIME_R */