]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/schema.c
Preliminary ldapAdd support
[openldap] / servers / slapd / schema.c
index e9de67d7822fb6261858270d318485e1453bf2a9..bd1601ce0da03b76c69c08a3afba93f3b84c9248 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2005 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -135,14 +135,14 @@ schema_info( Entry **entry, const char **text )
                 */
 
 #ifdef HAVE_GMTIME_R
-               ltm = gmtime_r( &SLAPD_GLOBAL(starttime), &ltm_buf );
+               ltm = gmtime_r( &starttime, &ltm_buf );
 #else
-               ldap_pvt_thread_mutex_lock( &SLAPD_GLOBAL(gmtime_mutex) );
-               ltm = gmtime( &SLAPD_GLOBAL(starttime) );
+               ldap_pvt_thread_mutex_lock( &gmtime_mutex );
+               ltm = gmtime( &starttime );
 #endif /* HAVE_GMTIME_R */
                lutil_gentime( timebuf, sizeof(timebuf), ltm );
 #ifndef HAVE_GMTIME_R
-               ldap_pvt_thread_mutex_unlock( &SLAPD_GLOBAL(gmtime_mutex) );
+               ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
 #endif
 
                vals[0].bv_val = timebuf;