summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-05-27 10:51:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-05-27 10:51:20 +0000
commit7a1fdd3999e03cacf4599685517dd906f593323c (patch)
treee80ad0480ab06707d721cd442010591235bb3897 /serial.c
parent61ec32f1c2c65efe8f1fec8e3b88a299dac772a8 (diff)
downloadgpsd-7a1fdd3999e03cacf4599685517dd906f593323c.tar.gz
879 splint warnings.
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/serial.c b/serial.c
index fb8b5e45..437ef657 100644
--- a/serial.c
+++ b/serial.c
@@ -148,7 +148,7 @@ int gpsd_open(struct gps_device_t *session)
*/
#define SNIFF_RETRIES 600
-int gpsd_next_hunt_setting(struct gps_device_t *session)
+bool gpsd_next_hunt_setting(struct gps_device_t *session)
/* advance to the next hunt setting */
{
/* every rate we're likely to see on a GPS */
@@ -159,14 +159,14 @@ int gpsd_next_hunt_setting(struct gps_device_t *session)
if (session->baudindex++ >= (unsigned int)(sizeof(rates)/sizeof(rates[0]))) {
session->baudindex = 0;
if (session->gpsdata.stopbits++ >= 2)
- return 0; /* hunt is over, no sync */
+ return false; /* hunt is over, no sync */
}
gpsd_set_speed(session,
rates[session->baudindex],
'N', session->gpsdata.stopbits);
}
- return 1; /* keep hunting */
+ return true; /* keep hunting */
}
void gpsd_close(struct gps_device_t *session)