[Git][NTPsec/ntpsec][master] Replace L_ISGEQ with native comparison.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Jan 5 19:32:24 UTC 2017


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


Commits:
ec1f74c7 by Eric S. Raymond at 2017-01-05T14:32:01-05:00
Replace L_ISGEQ with native comparison.

Safe because the signedness of l_fp can't matter here unless a new
NTP era began in the last second, in whuch case you have bigger
problems than this change.

- - - - -


1 changed file:

- ntpd/refclock_jupiter.c


Changes:

=====================================
ntpd/refclock_jupiter.c
=====================================
--- a/ntpd/refclock_jupiter.c
+++ b/ntpd/refclock_jupiter.c
@@ -819,8 +819,7 @@ jupiter_receive(struct recvbuf *rbufp)
 			 * (i.e. before limit, a.k.a. fudgetime2) in
 			 * the second.
 			 */
-			tstamp -= pp->lastrec;
-			if (!L_ISGEQ(tstamp, instance->limit))
+			if (tstamp - pp->lastrec < instance->limit))
 				bumplfpuint(pp->lastrec, 1);
 
 			/* Parse timecode (even when there's no pps) */



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ec1f74c70ff39cbbda6ec6d4f406517dadaada61
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170105/2e2b4e93/attachment.html>


More information about the vc mailing list