diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 18:23:46 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-01-21 18:23:46 -0500 |
commit | ab59cbb7b64909090d64866ebdf43fd27f584c5d (patch) | |
tree | c80d25e389f74cd506a733f8106235693b93f092 /driver_zodiac.c | |
parent | aeb3bdae85bddab96c749dfc07ecf6d7e0b2fdf2 (diff) | |
download | gpsd-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.c | 3 |
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; |