mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
Rename slap_tm to lutil_tm...
This commit is contained in:
parent
1ca9556c1b
commit
76252251f5
@ -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 )
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user