X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fschema.c;h=bd1601ce0da03b76c69c08a3afba93f3b84c9248;hb=5c3a4e176e9539f58a1ac666ad370b4c204cd44c;hp=e9de67d7822fb6261858270d318485e1453bf2a9;hpb=fda3d6260e25f1d0b9c035b0d520b2c9d0f22e49;p=openldap diff --git a/servers/slapd/schema.c b/servers/slapd/schema.c index e9de67d782..bd1601ce0d 100644 --- a/servers/slapd/schema.c +++ b/servers/slapd/schema.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * 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), <m_buf ); + ltm = gmtime_r( &starttime, <m_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;