]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9541 fix typo in util-int.c
authorHoward Chu <hyc@openldap.org>
Fri, 30 Apr 2021 08:25:13 +0000 (09:25 +0100)
committerHoward Chu <hyc@openldap.org>
Fri, 30 Apr 2021 08:25:13 +0000 (09:25 +0100)
From 94fbd968263765f0ef0b17867216a2d3f33572a4

libraries/libldap/util-int.c

index aa69f7091350ee52d7441b0320629555510fb2fe..7bad6f4bdeeae2dd9bb2dda7e3b93623c4fb5886 100644 (file)
@@ -298,11 +298,10 @@ ldap_pvt_clock_gettime( int clk_id, struct timespec *tv )
 /* emulate POSIX gettimeofday */
 int
 ldap_pvt_gettimeofday( struct timeval *tv, void *unused )
-int
 {
        struct timespec 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;
        return 0;
 }