summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial.c b/serial.c
index e9fe89af..8b278168 100644
--- a/serial.c
+++ b/serial.c
@@ -84,8 +84,8 @@ int gpsd_open(struct gps_device_t *session)
/* every rate we're likely to see on a GPS */
static unsigned int rates[] = {4800, 9600, 19200, 38400, 57600};
- gpsd_report(1, "opening GPS data source at '%s'\n", session->gpsd_device);
- if ((session->gpsdata.gps_fd = open(session->gpsd_device, O_RDWR|O_NOCTTY)) < 0) {
+ 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_NOCTTY)) < 0) {
gpsd_report(1, "device open failed: %s\n", strerror(errno));
return -1;
}