diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-05-26 12:27:27 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-05-26 12:28:04 -0400 |
commit | c1b57c6d22b2b2ff49bc5bfd75fa49a888bd077e (patch) | |
tree | 1c7612a5c3b0ec1f9a85d1313dedc4ca531f320f /serial.c | |
parent | 94b6387bc00c6d53281fd3f25502103293e0418b (diff) | |
download | gpsd-c1b57c6d22b2b2ff49bc5bfd75fa49a888bd077e.tar.gz |
Fix a bogus address.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -471,9 +471,10 @@ int gpsd_serial_open(struct gps_device_t *session) #endif /* BLUEZ */ { /* - * We open with O_NONBLOCK because we want to now get hung if + * We open with O_NONBLOCK because we want to not get hung if * the clocal flag is off, but we don't want to stay in that mode. */ + errno = 0; if ((session->gpsdata.gps_fd = open(session->gpsdata.dev.path, (int)(mode | O_NONBLOCK | O_NOCTTY))) == -1) { gpsd_log(&session->context->errout, LOG_ERROR, @@ -490,9 +491,8 @@ int gpsd_serial_open(struct gps_device_t *session) } gpsd_log(&session->context->errout, LOG_PROG, - "SER: file device open of %s succeeded: %s\n", - session->gpsdata.dev.path, - strerror(errno)); + "SER: file device open of %s succeeded\n", + session->gpsdata.dev.path); } } |