Rename slap_tm to lutil_tm...

This commit is contained in:
Howard Chu 2004-09-28 12:22:22 +00:00
parent 1ca9556c1b
commit 76252251f5
2 changed files with 8 additions and 8 deletions

View File

@ -147,7 +147,7 @@ lutil_progname LDAP_P((
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 */
@ -155,21 +155,21 @@ struct slap_tm {
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 )

View File

@ -136,7 +136,7 @@ size_t lutil_localtime( char *s, size_t smax, const struct tm *tm, long delta )
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,
@ -196,7 +196,7 @@ int lutil_tm2time( struct slap_tm *tm, struct slap_timet *tt )
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;