diff options
Diffstat (limited to 'ntpd/refclock_acts.c')
-rw-r--r-- | ntpd/refclock_acts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ntpd/refclock_acts.c b/ntpd/refclock_acts.c index 36322fd..f62cc46 100644 --- a/ntpd/refclock_acts.c +++ b/ntpd/refclock_acts.c @@ -343,7 +343,7 @@ acts_receive( up->bufptr = up->buf; acts_message(peer, up->buf); } - } else if (!iscntrl(*tptr)) { + } else if (!iscntrl((unsigned char)*tptr)) { *up->bufptr++ = *tptr; if (*tptr == '*' || *tptr == '#') { up->tstamp = pp->lastrec; @@ -515,7 +515,7 @@ acts_timeout( up->unit); fd = refclock_open(device, SPEED232, LDISC_ACTS | LDISC_RAW | LDISC_REMOTE); - if (fd <= 0) { + if (fd < 0) { msyslog(LOG_ERR, "acts: open fails %m"); return; } |