From dd640af54fcdad7fa9c85bfe0612b8a73232c0f9 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 12 Jan 2011 14:25:37 +0000 Subject: [PATCH] Fix ITS#6672: Do not return LDAP_MUTEX_LOCK(). It has type void. --- libraries/libldap/util-int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5