ITS#9541 fix typo in util-int.c

From 94fbd96826
This commit is contained in:
Howard Chu 2021-04-30 09:25:13 +01:00
parent 7b2c9aed3c
commit 16fcba1e98

View file

@ -298,11 +298,10 @@ ldap_pvt_clock_gettime( int clk_id, struct timespec *tv )
/* emulate POSIX gettimeofday */ /* emulate POSIX gettimeofday */
int int
ldap_pvt_gettimeofday( struct timeval *tv, void *unused ) ldap_pvt_gettimeofday( struct timeval *tv, void *unused )
int
{ {
struct timespec ts; struct timespec ts;
ldap_pvt_clock_gettime( 0, &ts ); ldap_pvt_clock_gettime( 0, &ts );
tv->tv_sec = ts.tv_spec; tv->tv_sec = ts.tv_sec;
tv->tv_usec = ts.tv_nsec / 1000; tv->tv_usec = ts.tv_nsec / 1000;
return 0; return 0;
} }