diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-07 23:30:26 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-07 23:30:26 +0000 |
commit | cec96db6986eeb894e43dd01a6e1a26cef3ad706 (patch) | |
tree | c7198436c20d6b06476e33afd09f82f2508ae336 /sirf.c | |
parent | 1efc70b98907350347785a6f5e21f9179cbc075b (diff) | |
download | gpsd-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 'sirf.c')
-rw-r--r-- | sirf.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -119,9 +119,10 @@ static void sirfbin_mode(struct gps_device_t *session, int mode) } } -int sirf_parse(struct gps_device_t *session, unsigned char *buf, int len) +gps_mask_t sirf_parse(struct gps_device_t *session, unsigned char *buf, int len) { - int st, i, j, cn, navtype, mask; + int st, i, j, cn, navtype; + gps_mask_t mask; char buf2[MAX_PACKET_LENGTH*3+2]; double fv; /*@ +charint @*/ @@ -687,9 +688,9 @@ int sirf_parse(struct gps_device_t *session, unsigned char *buf, int len) return 0; } -static int sirfbin_parse_input(struct gps_device_t *session) +static gps_mask_t sirfbin_parse_input(struct gps_device_t *session) { - int st; + gps_mask_t st; if (session->packet_type == SIRF_PACKET){ st = sirf_parse(session, session->outbuffer, (int)session->outbuflen); |