Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/ntp/dist/ntpd Don't use fabs on integers.
details: https://anonhg.NetBSD.org/src/rev/e7ce3ef40b9e
branches: trunk
changeset: 339408:e7ce3ef40b9e
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Jul 20 13:13:31 2015 +0000
description:
Don't use fabs on integers.
diffstat:
external/bsd/ntp/dist/ntpd/ntp_timer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 622eedfad255 -r e7ce3ef40b9e external/bsd/ntp/dist/ntpd/ntp_timer.c
--- a/external/bsd/ntp/dist/ntpd/ntp_timer.c Mon Jul 20 12:20:26 2015 +0000
+++ b/external/bsd/ntp/dist/ntpd/ntp_timer.c Mon Jul 20 13:13:31 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntp_timer.c,v 1.3 2015/07/10 14:20:32 christos Exp $ */
+/* $NetBSD: ntp_timer.c,v 1.4 2015/07/20 13:13:31 joerg Exp $ */
/*
* ntp_timer.c - event timer support routines
@@ -624,7 +624,7 @@
const char *leapmsg = NULL;
if (lsdata.warped < 0) {
if (clock_max_back > 0.0 &&
- clock_max_back < fabs(lsdata.warped)) {
+ clock_max_back < abs(lsdata.warped)) {
step_systime(lsdata.warped);
leapmsg = leapmsg_p_step;
} else {
@@ -632,7 +632,7 @@
}
} else if (lsdata.warped > 0) {
if (clock_max_fwd > 0.0 &&
- clock_max_fwd < fabs(lsdata.warped)) {
+ clock_max_fwd < abs(lsdata.warped)) {
step_systime(lsdata.warped);
leapmsg = leapmsg_n_step;
} else {
Home |
Main Index |
Thread Index |
Old Index