From 78c5fe3fe60be3645e080ff14c5c843c811c82da Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 22 Jan 2015 22:44:48 -0500 Subject: cppcheck cleanup. --- driver_tsip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'driver_tsip.c') 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 */ -- cgit v1.2.1