summaryrefslogtreecommitdiff
path: root/driver_italk.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_italk.c
parent4f4dc6bfb24825b328d9e9a4cee17fd74edd4d2d (diff)
downloadgpsd-3dc9a10d4d20e44a4750e3a5620464ee3d1a3eb6.tar.gz
Be explicit about the type and signedness of subframe data.
Diffstat (limited to 'driver_italk.c')
-rw-r--r--driver_italk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_italk.c b/driver_italk.c
index 65a2026e..aef87794 100644
--- a/driver_italk.c
+++ b/driver_italk.c
@@ -217,7 +217,8 @@ static gps_mask_t decode_itk_subframe(struct gps_device_t *session,
unsigned char *buf, size_t len)
{
unsigned short flags, prn, sf;
- unsigned int i, words[10];
+ unsigned int i;
+ uint32_t words[10];
if (len != 64) {
gpsd_report(LOG_PROG,
@@ -240,8 +241,7 @@ static gps_mask_t decode_itk_subframe(struct gps_device_t *session,
* words with parity checking done but parity bits still present."
*/
for (i = 0; i < 10; i++)
- words[i] =
- (unsigned int)(getleul(buf, 7 + 14 + 4 * i) >> 6) & 0xffffff;
+ words[i] = (uint32_t)(getleul(buf, 7 + 14 + 4 * i) >> 6) & 0xffffff;
gpsd_interpret_subframe(session, prn, words);
return ONLINE_IS;