summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-22 22:44:48 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-22 22:46:20 -0500
commit78c5fe3fe60be3645e080ff14c5c843c811c82da (patch)
tree754f2bc8945acbdd288ad960d48285767ea2416b /driver_tsip.c
parent842cb2f0004842e48b064786a3e258d9cd5f9b0f (diff)
downloadgpsd-78c5fe3fe60be3645e080ff14c5c843c811c82da.tar.gz
cppcheck cleanup.
Diffstat (limited to 'driver_tsip.c')
-rw-r--r--driver_tsip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/driver_tsip.c b/driver_tsip.c
index ebf6a93d..6134e3d9 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -128,7 +128,7 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session)
int i, j, len, count;
gps_mask_t mask = 0;
unsigned int id;
- uint8_t u1, u2, u3, u4, u5, u6, u7;
+ uint8_t u1, u2, u3, u4, u5;
int16_t s1, s2, s3, s4;
int32_t sl1, sl2, sl3;
uint32_t ul1, ul2;
@@ -194,6 +194,7 @@ static gps_mask_t tsip_parse_input(struct gps_device_t *session)
*/
u1 = (uint8_t) getub(buf, 0);
if (u1 == 0x81) { /* Software Version Information */
+ uint8_t u6, u7;
u2 = getub(buf, 2); /* Major version */
u3 = getub(buf, 3); /* Minor version */
u4 = getub(buf, 4); /* Build number */