]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/conn.c
ITS#3353 consolidate slapd globals into a single struct
[openldap] / servers / slapd / back-monitor / conn.c
index ce61417eb480e0046aa1c9981130670b45fa6f40..e14fb0524286c789e511dea13b040b1bbede4a4d 100644 (file)
@@ -252,7 +252,7 @@ conn_create(
        assert( ep != NULL );
 
 #ifndef HAVE_GMTIME_R
-       ldap_pvt_thread_mutex_lock( &gmtime_mutex );
+       ldap_pvt_thread_mutex_lock( &SLAPD_GLOBAL(gmtime_mutex) );
 #endif
 #ifdef HACK_LOCAL_TIME
 # ifdef HAVE_LOCALTIME_R
@@ -280,7 +280,7 @@ conn_create(
 # endif /* HAVE_GMTIME_R */
 #endif /* !HACK_LOCAL_TIME */
 #ifndef HAVE_GMTIME_R
-       ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
+       ldap_pvt_thread_mutex_unlock( &SLAPD_GLOBAL(gmtime_mutex) );
 #endif
 
        snprintf( buf, sizeof( buf ),
@@ -314,7 +314,7 @@ conn_create(
        }
 
 #ifndef HAVE_GMTIME_R
-       ldap_pvt_thread_mutex_lock( &gmtime_mutex );
+       ldap_pvt_thread_mutex_lock( &SLAPD_GLOBAL(gmtime_mutex) );
 #endif
 
 #ifdef HAVE_GMTIME_R
@@ -332,7 +332,7 @@ conn_create(
        lutil_gentime( buf3, sizeof( buf3 ), ltm );
 
 #ifndef HAVE_GMTIME_R
-       ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
+       ldap_pvt_thread_mutex_unlock( &SLAPD_GLOBAL(gmtime_mutex) );
 #endif /* HAVE_GMTIME_R */
 
        /* monitored info */