summaryrefslogtreecommitdiff
path: root/driver_superstar2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-16 20:42:26 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-16 20:42:26 -0400
commitddc22ff56acef0690abfd22ee640cda4eb143933 (patch)
treebcbccbbab554a3e2915abfad9b5fe91a6604ff08 /driver_superstar2.c
parent61ab6a6636762115689a190b4a9fe3386008d24c (diff)
downloadgpsd-ddc22ff56acef0690abfd22ee640cda4eb143933.tar.gz
Cleanup motivated by new cppcheck with more tests. All regression tests pass.
Diffstat (limited to 'driver_superstar2.c')
-rw-r--r--driver_superstar2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_superstar2.c b/driver_superstar2.c
index ef14b34d..ad174fc0 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -245,7 +245,6 @@ superstar2_msg_timing(struct gps_device_t *session, unsigned char *buf,
{
gps_mask_t mask;
union long_double l_d;
- double d;
struct tm tm;
if (data_len != 65)
@@ -257,6 +256,7 @@ superstar2_msg_timing(struct gps_device_t *session, unsigned char *buf,
mask = 0;
/*@ -charint @*/
else {
+ double d;
/* extract time data */
(void)memset(&tm, '\0', sizeof(tm));
tm.tm_mday = (int)getsb(buf, 37);