summaryrefslogtreecommitdiff
path: root/sirf.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 /sirf.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 'sirf.c')
-rw-r--r--sirf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sirf.c b/sirf.c
index 9e46c245..1e0326f6 100644
--- a/sirf.c
+++ b/sirf.c
@@ -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);