diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-16 20:42:26 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-16 20:42:26 -0400 |
commit | ddc22ff56acef0690abfd22ee640cda4eb143933 (patch) | |
tree | bcbccbbab554a3e2915abfad9b5fe91a6604ff08 /driver_italk.c | |
parent | 61ab6a6636762115689a190b4a9fe3386008d24c (diff) | |
download | gpsd-ddc22ff56acef0690abfd22ee640cda4eb143933.tar.gz |
Cleanup motivated by new cppcheck with more tests. All regression tests pass.
Diffstat (limited to 'driver_italk.c')
-rw-r--r-- | driver_italk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/driver_italk.c b/driver_italk.c index 2588e83d..2ac0a532 100644 --- a/driver_italk.c +++ b/driver_italk.c @@ -121,13 +121,14 @@ static gps_mask_t decode_itk_navfix(struct gps_device_t *session, static gps_mask_t decode_itk_prnstatus(struct gps_device_t *session, unsigned char *buf, size_t len) { - unsigned int i, nsv, nchan, st; gps_mask_t mask; if (len < 62) { gpsd_report(LOG_PROG, "ITALK: runt PRN_STATUS (len=%zu)\n", len); mask = 0; } else { + unsigned int i, nsv, nchan, st; + session->gpsdata.skyview_time = gpsd_gpstime_resolve(session, (unsigned short)getleu16(buf, 7 + 4), (unsigned int)getleu32(buf, 7 + 6) / 1000.0), |