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 Use abs for difference of integers.
details: https://anonhg.NetBSD.org/src/rev/5b4a45b79d45
branches: trunk
changeset: 327121:5b4a45b79d45
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 27 18:12:11 2014 +0000
description:
Use abs for difference of integers.
diffstat:
external/bsd/ntp/dist/ntpd/refclock_irig.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fd4227921f10 -r 5b4a45b79d45 external/bsd/ntp/dist/ntpd/refclock_irig.c
--- a/external/bsd/ntp/dist/ntpd/refclock_irig.c Thu Feb 27 18:11:41 2014 +0000
+++ b/external/bsd/ntp/dist/ntpd/refclock_irig.c Thu Feb 27 18:12:11 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: refclock_irig.c,v 1.3 2013/12/28 03:20:14 christos Exp $ */
+/* $NetBSD: refclock_irig.c,v 1.4 2014/02/27 18:12:11 joerg Exp $ */
/*
* refclock_irig - audio IRIG-B/E demodulator/decoder
@@ -764,7 +764,7 @@
* persist for lots of samples.
*/
up->exing = -up->yxing;
- if (fabs(up->envxing - up->envphase) <= 1) {
+ if (abs(up->envxing - up->envphase) <= 1) {
up->tcount++;
if (up->tcount > 20 * up->tc) {
up->tc++;
Home |
Main Index |
Thread Index |
Old Index