summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-28 06:32:37 -0400
commit6b2e8ab641522c61fa520ca47b3008dc65a8aabb (patch)
treec3c5c40a50cc39c0744cde2a8c84a0cf0190ad58 /serial.c
parent5e24bd130a5456d2f5b3b1c6bb2d7222b9613180 (diff)
downloadgpsd-6b2e8ab641522c61fa520ca47b3008dc65a8aabb.tar.gz
splint cleanup. Fixes for minor but real issues...
...no attempt to address the weird cross-platfprm variability we've seen lately. All regression tests pass.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 5a01d195..1fa78726 100644
--- a/serial.c
+++ b/serial.c
@@ -242,7 +242,9 @@ int gpsd_get_stopbits(const struct gps_device_t *dev)
bool gpsd_set_raw(struct gps_device_t * session)
{
+#ifndef S_SPLINT_S
(void)cfmakeraw(&session->ttyset);
+#endif /* S_SPLINT_S */
if (tcsetattr(session->gpsdata.gps_fd, TCIOFLUSH, &session->ttyset) == -1) {
gpsd_log(&session->context->errout, LOG_ERROR,
"error changing port attributes: %s\n", strerror(errno));