diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 20:21:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 20:21:42 -0500 |
commit | 032607920d8d6f335e3bfbca1fc76e9d77dc7457 (patch) | |
tree | 632e28102497e16d43be91ca0dbcec5a7ed5041c /driver_superstar2.c | |
parent | 6a0157a94666ae5a653bc297aedc1f6c8f1eaf3a (diff) | |
download | gpsd-032607920d8d6f335e3bfbca1fc76e9d77dc7457.tar.gz |
Full splint cleanup. Partial cppcheck cleanup.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r-- | driver_superstar2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c index 9761c824..969ad87a 100644 --- a/driver_superstar2.c +++ b/driver_superstar2.c @@ -287,7 +287,6 @@ superstar2_msg_measurement(struct gps_device_t *session, unsigned char *buf, { gps_mask_t mask = 0; int i, n; - unsigned long ul; double t; gpsd_report(session->context->debug, LOG_PROG, @@ -301,6 +300,7 @@ superstar2_msg_measurement(struct gps_device_t *session, unsigned char *buf, } t = getled64((char *)buf, 7); /* measurement time */ for (i = 0; i < n; i++) { + unsigned long ul; session->gpsdata.raw.mtime[i] = t; session->gpsdata.PRN[i] = (int)getub(buf, 11 * i + 15) & 0x1f; session->gpsdata.ss[i] = (double)getub(buf, 11 * i * 15 + 1) / 4.0; |