diff options
Diffstat (limited to 'ntpd/refclock_irig.c')
-rw-r--r-- | ntpd/refclock_irig.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ntpd/refclock_irig.c b/ntpd/refclock_irig.c index 46c01fb..abc94f6 100644 --- a/ntpd/refclock_irig.c +++ b/ntpd/refclock_irig.c @@ -762,7 +762,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++; @@ -980,10 +980,8 @@ irig_poll( ) { struct refclockproc *pp; - struct irigunit *up; pp = peer->procptr; - up = pp->unitptr; if (pp->coderecv == pp->codeproc) { refclock_report(peer, CEVNT_TIMEOUT); |