]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#6672: Do not return LDAP_MUTEX_LOCK().
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Jan 2011 14:25:37 +0000 (14:25 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 12 Jan 2011 14:25:37 +0000 (14:25 +0000)
It has type void.

libraries/libldap/util-int.c

index 21e42f2965f3711a1dae87e4968e00dbf787a58a..f0b5f72f04fe7950c8f7da7383b60aff8cdeaa0d 100644 (file)
@@ -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 */