summaryrefslogtreecommitdiff
path: root/drivers.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-07 23:30:26 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-07 23:30:26 +0000
commitcec96db6986eeb894e43dd01a6e1a26cef3ad706 (patch)
treec7198436c20d6b06476e33afd09f82f2508ae336 /drivers.c
parent1efc70b98907350347785a6f5e21f9179cbc075b (diff)
downloadgpsd-cec96db6986eeb894e43dd01a6e1a26cef3ad706.tar.gz
41 splint warnings.
gps_mask_t type introduced so we won't wire in a bunch of dependencies on the size of the flag mask.
Diffstat (limited to 'drivers.c')
-rw-r--r--drivers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers.c b/drivers.c
index ebc5b216..f7544700 100644
--- a/drivers.c
+++ b/drivers.c
@@ -12,7 +12,7 @@
*
**************************************************************************/
-static int nmea_parse_input(struct gps_device_t *session)
+static gps_mask_t nmea_parse_input(struct gps_device_t *session)
{
if (session->packet_type == SIRF_PACKET) {
gpsd_report(2, "SiRF packet seen when NMEA expected.\n");
@@ -22,7 +22,7 @@ static int nmea_parse_input(struct gps_device_t *session)
return 0;
#endif /* SIRFII_ENABLE */
} else if (session->packet_type == NMEA_PACKET) {
- int st = 0;
+ gps_mask_t st = 0;
gpsd_report(2, "<= GPS: %s", session->outbuffer);
if ((st=nmea_parse((char *)session->outbuffer,&session->gpsdata))==0) {
#ifdef NON_NMEA_ENABLE