Hello -

time_t *sec is unused in ntp_update_second.
OK?

Index: kern/kern_tc.c
===================================================================
RCS file: /cvs/src/sys/kern/kern_tc.c,v
retrieving revision 1.30
diff -u -p -r1.30 kern_tc.c
--- kern/kern_tc.c      9 Feb 2017 20:15:28 -0000       1.30
+++ kern/kern_tc.c      3 Mar 2017 05:37:17 -0000
@@ -41,7 +41,7 @@
 
 u_int dummy_get_timecount(struct timecounter *);
 
-void ntp_update_second(int64_t *, time_t *);
+void ntp_update_second(int64_t *);
 int sysctl_tc_hardware(void *, size_t *, void *, size_t);
 int sysctl_tc_choice(void *, size_t *, void *, size_t);
 
@@ -434,7 +434,7 @@ tc_windup(void)
        if (i > LARGE_STEP)
                i = 2;
        for (; i > 0; i--)
-               ntp_update_second(&th->th_adjustment, &bt.sec);
+               ntp_update_second(&th->th_adjustment);
 
        /* Update the UTC timestamps used by the get*() functions. */
        /* XXX shouldn't do this here.  Should force non-`get' versions. */
@@ -617,7 +617,7 @@ sysctl_tc(int *name, u_int namelen, void
 }
 
 void
-ntp_update_second(int64_t *adjust, time_t *sec)
+ntp_update_second(int64_t *adjust)
 {
        int64_t adj;
 

Reply via email to