https://bugs.openldap.org/show_bug.cgi?id=9541

          Issue ID: 9541
           Summary: Typos in ldap_pvt_gettimeofday() in
                    libraries/libldap/util-int.c
           Product: OpenLDAP
           Version: 2.5.4
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: ---
         Component: build
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

In openldap 2.544 there appear to be some typos in libraries/libldap/util-int.c
- there is an int between the ldap_pvt_gettimeofday() function definition and
the next curly brace
- tv_spec is not a member of struct timeval, should be tv_sec


patch -ulbf libraries/libldap/util-int.c << EOF
@@ -300,3 +300,2 @@
 ldap_pvt_gettimeofday( struct timeval *tv, void *unused )
-int
 {
@@ -304,3 +303,3 @@
        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;
EOF

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to