[Git][NTPsec/ntpsec][master] Eliminate struct timeval compuation from libparse/clk_trimtsip.c

Eric S. Raymond gitlab at mg.gitlab.com
Tue Oct 4 12:41:34 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
1eb045a0 by Eric S. Raymond at 2016-10-04T08:41:19-04:00
Eliminate struct timeval compuation from libparse/clk_trimtsip.c

- - - - -


1 changed file:

- libparse/clk_trimtsip.c


Changes:

=====================================
libparse/clk_trimtsip.c
=====================================
--- a/libparse/clk_trimtsip.c
+++ b/libparse/clk_trimtsip.c
@@ -11,7 +11,7 @@
 #include "ntp_syslog.h"
 #include "ntp_types.h"
 #include "ntp_fp.h"
-#include "timevalops.h"
+#include "timespecops.h"
 #include "ntp_calendar.h"
 #include "ntp_machine.h"
 #include "ntp_stdlib.h"
@@ -250,7 +250,7 @@ cvt_trimtsip(
 
 				    clock_time->utctime = gpstime.l_ui - JAN_1970;
 
-				    TSFTOTVU(gpstime.l_uf, clock_time->usecond);
+				    clock_time->usecond = lfp_intv_to_tspec(gpstime).tv_nsec / 1000;
 
 				    if (t->t_leap == ADDSECOND)
 					clock_time->flags |= PARSEB_LEAPADD;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1eb045a094d184a7b06d7883d121db47cea92780
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161004/526eea95/attachment.html>


More information about the vc mailing list