Module Name: src
Committed By: joerg
Date: Thu Feb 27 18:12:11 UTC 2014
Modified Files:
src/external/bsd/ntp/dist/ntpd: refclock_irig.c
Log Message:
Use abs for difference of integers.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/ntp/dist/ntpd/refclock_irig.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/ntp/dist/ntpd/refclock_irig.c
diff -u src/external/bsd/ntp/dist/ntpd/refclock_irig.c:1.3 src/external/bsd/ntp/dist/ntpd/refclock_irig.c:1.4
--- src/external/bsd/ntp/dist/ntpd/refclock_irig.c:1.3 Sat Dec 28 03:20:14 2013
+++ src/external/bsd/ntp/dist/ntpd/refclock_irig.c Thu Feb 27 18:12:11 2014
@@ -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 @@ irig_baud(
* 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++;