summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-02-23 08:35:10 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-02-23 08:35:10 +0000
commitebc29642b2928534b0fa91c3d7c42ec8717e926a (patch)
tree89f5d20eb1b6b751bb48aa716dae31bb803ae390 /serial.c
parent145a0133d6e495145c6fb951ca898a3d34265929 (diff)
downloadgpsd-ebc29642b2928534b0fa91c3d7c42ec8717e926a.tar.gz
Typo fix.
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 2bc4044f..444f5142 100644
--- a/serial.c
+++ b/serial.c
@@ -56,9 +56,9 @@ int gpsd_set_speed(struct gps_session_t *session, int speed)
else if (speed < 38400)
speed = B19200;
else if (speed < 57600)
- speed = 38400;
+ speed = B38400;
else
- speed = 57600;
+ speed = B57600;
tcflush(session->gNMEAdata.gps_fd, TCIOFLUSH);
cfsetispeed(&session->ttyset, (speed_t)speed);