[Git][NTPsec/ntpsec][master] 2 commits: Clean up lfp init;

Gary E. Miller gitlab at mg.gitlab.com
Sat Apr 1 03:40:47 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
743a5885 by Gary E. Miller at 2017-03-31T20:31:41-07:00
Clean up lfp init;

ntpfrob is now clean of implicit casts

- - - - -
c10fa3ab by Gary E. Miller at 2017-03-31T20:36:58-07:00
ldisc is unsigned, not signed.

- - - - -


2 changed files:

- ntpd/refclock_hpgps.c
- ntpfrob/jitter.c


Changes:

=====================================
ntpd/refclock_hpgps.c
=====================================
--- a/ntpd/refclock_hpgps.c
+++ b/ntpd/refclock_hpgps.c
@@ -151,7 +151,7 @@ hpgps_start(
 	register struct hpgpsunit *up;
 	struct refclockproc *pp;
 	int fd;
-	int ldisc;
+	unsigned int ldisc;
 	unsigned int speed;
 	char device[20];
 


=====================================
ntpfrob/jitter.c
=====================================
--- a/ntpfrob/jitter.c
+++ b/ntpfrob/jitter.c
@@ -45,7 +45,7 @@ get_clocktime(
 	 * Convert Unix clock from seconds and nanoseconds to seconds.
 	 */
 	clock_gettime(CLOCK_REALTIME, &ts);
-	setlfpsint(*now, ts.tv_sec + JAN_1970);
+	*now = lfptouint(ts.tv_sec + JAN_1970);  /* no fraction, yet */
 	dtemp = ts.tv_nsec * S_PER_NS;
 
 	/*



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/9bb70a84a34de229135d6eec87e5568719bfc13f...c10fa3ab6740a028d047e3aa099dd66711126c40
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170401/a2aeb4dc/attachment.html>


More information about the vc mailing list