int argc,
char *argv[] ));
-struct slap_tm {
+struct lutil_tm {
int tm_sec; /* seconds 0-60 (1 leap second) */
int tm_min; /* minutes 0-59 */
int tm_hour; /* hours 0-23 */
int tm_mon; /* month 0-11 */
int tm_year; /* year - 1900 */
int tm_usec; /* microseconds */
-} slap_tm;
+} lutil_tm;
-struct slap_timet {
+struct lutil_timet {
unsigned int tt_sec; /* seconds since 1900 */
int tt_gsec; /* seconds since 1900, high 7 bits */
unsigned int tt_usec; /* microseconds */
-} slap_timet;
+} lutil_timet;
LDAP_LUTIL_F( int )
lutil_parsetime LDAP_P((
- char *atm, struct slap_tm * ));
+ char *atm, struct lutil_tm * ));
LDAP_LUTIL_F( int )
lutil_tm2time LDAP_P((
- struct slap_tm *, struct slap_timet * ));
+ struct lutil_tm *, struct lutil_timet * ));
#ifdef _WIN32
LDAP_LUTIL_F( void )
return ret + 5;
}
-int lutil_tm2time( struct slap_tm *tm, struct slap_timet *tt )
+int lutil_tm2time( struct lutil_tm *tm, struct lutil_timet *tt )
{
static int moffset[12] = {
0, 31, 59, 90, 120,
return 0;
}
-int lutil_parsetime( char *atm, struct slap_tm *tm )
+int lutil_parsetime( char *atm, struct lutil_tm *tm )
{
while (atm && tm) {
char *ptr = atm;