summaryrefslogtreecommitdiff
path: root/driver_sirf.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-24 05:51:47 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-24 05:51:47 -0500
commit3dc9a10d4d20e44a4750e3a5620464ee3d1a3eb6 (patch)
tree5d17b3363ddedb2d07006b96f98db4e4c5dcc5f0 /driver_sirf.c
parent4f4dc6bfb24825b328d9e9a4cee17fd74edd4d2d (diff)
downloadgpsd-3dc9a10d4d20e44a4750e3a5620464ee3d1a3eb6.tar.gz
Be explicit about the type and signedness of subframe data.
Diffstat (limited to 'driver_sirf.c')
-rw-r--r--driver_sirf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/driver_sirf.c b/driver_sirf.c
index 5a1a58d5..a2c67eb0 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -435,7 +435,8 @@ static gps_mask_t sirf_msg_swversion(struct gps_device_t *session,
static gps_mask_t sirf_msg_navdata(struct gps_device_t *session,
unsigned char *buf, size_t len)
{
- unsigned int i, words[10], chan, svid;
+ unsigned int i, chan, svid;
+ uint32_t words[10];
if (len != 43)
return 0;
@@ -444,7 +445,7 @@ static gps_mask_t sirf_msg_navdata(struct gps_device_t *session,
svid = (unsigned int)getub(buf, 2);
for (i = 0; i < 10; i++) {
- words[i] = (unsigned int)getbeul(buf, 4 * i + 3);
+ words[i] = (uint32_t)getbeul(buf, 4 * i + 3);
}
(void)gpsd_interpret_subframe_raw(session, svid, words);