diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-22 22:44:48 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-22 22:46:20 -0500 |
commit | 78c5fe3fe60be3645e080ff14c5c843c811c82da (patch) | |
tree | 754f2bc8945acbdd288ad960d48285767ea2416b /driver_geostar.c | |
parent | 842cb2f0004842e48b064786a3e258d9cd5f9b0f (diff) | |
download | gpsd-78c5fe3fe60be3645e080ff14c5c843c811c82da.tar.gz |
cppcheck cleanup.
Diffstat (limited to 'driver_geostar.c')
-rw-r--r-- | driver_geostar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_geostar.c b/driver_geostar.c index 6eae5295..11e9ad78 100644 --- a/driver_geostar.c +++ b/driver_geostar.c @@ -127,7 +127,6 @@ static gps_mask_t geostar_analyze(struct gps_device_t *session) int i, len; gps_mask_t mask = 0; unsigned int id; - int16_t s1, s2, s3; uint16_t uw1, uw2; uint32_t ul1, ul2, ul3, ul4, ul5; double d1, d2, d3, d4, d5; @@ -260,6 +259,7 @@ static gps_mask_t geostar_analyze(struct gps_device_t *session) session->gpsdata.satellites_visible = (int)ul1; if(ul1 > GEOSTAR_CHANNELS) ul1 = GEOSTAR_CHANNELS; for(i = 0; (uint32_t)i < ul1; i++) { + int16_t s1, s2, s3; ul2 = getleu32(buf, OFFSET(2) + i * 3 * 4); s1 = getles16(buf, OFFSET(3) + i * 3 * 4); s2 = getles16(buf, OFFSET(3) + 2 + i * 3 * 4); |