[Git][NTPsec/ntpsec][master] Fix compiler warning: abs => fabsl

Hal Murray gitlab at mg.gitlab.com
Tue Apr 3 10:01:27 UTC 2018


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
bcf8275a by Hal Murray at 2018-04-03T09:59:04Z
Fix compiler warning: abs => fabsl

- - - - -


1 changed file:

- libntp/systime.c


Changes:

=====================================
libntp/systime.c
=====================================
--- a/libntp/systime.c
+++ b/libntp/systime.c
@@ -390,7 +390,7 @@ step_systime(
 	/* <--- time-critical path ended with call to the settime hook <--- */
 
 	msyslog(LOG_WARNING, "CLOCK: time stepped by %Lf", step);
-	if (abs(step) > 86400) {
+	if (fabsl(step) > 86400) {
 	    /* Get the full year (both old and new) into the log file.
 	     * Issue #474 */
 	    struct tm oldtm, newtm;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bcf8275ac22f4df424f9f93c5ae3aed3991c4dd4

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/bcf8275ac22f4df424f9f93c5ae3aed3991c4dd4
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180403/d0a95f59/attachment.html>


More information about the vc mailing list