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 fd == 0 is a valid descriptor!



details:   https://anonhg.NetBSD.org/src/rev/0bc06cd12431
branches:  trunk
changeset: 792374:0bc06cd12431
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 01 19:52:58 2014 +0000

description:
fd == 0 is a valid descriptor!

diffstat:

 external/bsd/ntp/dist/ntpd/refclock_acts.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6cdccc8dd5ad -r 0bc06cd12431 external/bsd/ntp/dist/ntpd/refclock_acts.c
--- a/external/bsd/ntp/dist/ntpd/refclock_acts.c        Wed Jan 01 19:50:44 2014 +0000
+++ b/external/bsd/ntp/dist/ntpd/refclock_acts.c        Wed Jan 01 19:52:58 2014 +0000
@@ -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 @@
                    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;
                }



Home | Main Index | Thread Index | Old Index