diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-05-27 10:51:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-05-27 10:51:20 +0000 |
commit | 7a1fdd3999e03cacf4599685517dd906f593323c (patch) | |
tree | e80ad0480ab06707d721cd442010591235bb3897 /serial.c | |
parent | 61ec32f1c2c65efe8f1fec8e3b88a299dac772a8 (diff) | |
download | gpsd-7a1fdd3999e03cacf4599685517dd906f593323c.tar.gz |
879 splint warnings.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |