Module Name: src
Committed By: christos
Date: Wed Jan 1 19:52:58 UTC 2014
Modified Files:
src/external/bsd/ntp/dist/ntpd: refclock_acts.c
Log Message:
fd == 0 is a valid descriptor!
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/bsd/ntp/dist/ntpd/refclock_acts.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_acts.c
diff -u src/external/bsd/ntp/dist/ntpd/refclock_acts.c:1.6 src/external/bsd/ntp/dist/ntpd/refclock_acts.c:1.7
--- src/external/bsd/ntp/dist/ntpd/refclock_acts.c:1.6 Fri Dec 27 22:20:14 2013
+++ src/external/bsd/ntp/dist/ntpd/refclock_acts.c Wed Jan 1 14:52:58 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: refclock_acts.c,v 1.6 2013/12/28 03:20:14 christos Exp $ */
+/* $NetBSD: refclock_acts.c,v 1.7 2014/01/01 19:52:58 christos Exp $ */
/*
* refclock_acts - clock driver for the NIST/USNO/PTB/NPL Computer Time
@@ -517,7 +517,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;
}