summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2005-09-28 20:52:56 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2005-09-28 20:52:56 +0000
commit0304199de36c9453d2ca25f71abab10353a2a0fb (patch)
treeb331257f4dc8dc6e27ef55170d85513d8803d79f /serial.c
parent0d889f968b4b4c661cc9c4cc2f44f4299b484a49 (diff)
downloadgpsd-0304199de36c9453d2ca25f71abab10353a2a0fb.tar.gz
@#&^(#@*$&!!! xterm adding line endings in the middle of a cut-n-paste.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index 91c79b99..1bef7e47 100644
--- a/serial.c
+++ b/serial.c
@@ -97,8 +97,7 @@ void gpsd_set_speed(struct gps_device_t *session,
int gpsd_open(struct gps_device_t *session)
{
gpsd_report(1, "opening GPS data source at '%s'\n", session->gpsdata.gps_device);
- if ((session->gpsdata.gps_fd = open(session->gpsdata.gps_device, O_RDWR|O_N
-ONBLOCK|O_NOCTTY)) < 0) {
+ if ((session->gpsdata.gps_fd = open(session->gpsdata.gps_device, O_RDWR|O_NONBLOCK|O_NOCTTY)) < 0) {
gpsd_report(1, "device open failed: %s\n", strerror(errno));
return -1;
}