summaryrefslogtreecommitdiff
path: root/driver_zodiac.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-21 18:23:46 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-21 18:23:46 -0500
commitab59cbb7b64909090d64866ebdf43fd27f584c5d (patch)
treec80d25e389f74cd506a733f8106235693b93f092 /driver_zodiac.c
parentaeb3bdae85bddab96c749dfc07ecf6d7e0b2fdf2 (diff)
downloadgpsd-ab59cbb7b64909090d64866ebdf43fd27f584c5d.tar.gz
Coverity/splint cleanup.
Turned up a bug in where a counter was incremented un the Navcom driver; this required one test rebuild.
Diffstat (limited to 'driver_zodiac.c')
-rw-r--r--driver_zodiac.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver_zodiac.c b/driver_zodiac.c
index 1c3c8731..0d066d1f 100644
--- a/driver_zodiac.c
+++ b/driver_zodiac.c
@@ -165,6 +165,9 @@ static gps_mask_t handle1000(struct gps_device_t *session)
unpacked_date.tm_hour = (int)getzword(22);
unpacked_date.tm_min = (int)getzword(23);
unpacked_date.tm_sec = (int)getzword(24);
+#ifdef S_SPLINT_S
+ unpacked_date.tm_isdst = 0;
+#endif /* S_SPLINT_S */
subseconds = (int)getzlong(25) / 1e9;
/*@ -compdef */
session->newdata.time = (timestamp_t)mkgmtime(&unpacked_date) + subseconds;