From ab59cbb7b64909090d64866ebdf43fd27f584c5d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 21 Jan 2015 18:23:46 -0500 Subject: Coverity/splint cleanup. Turned up a bug in where a counter was incremented un the Navcom driver; this required one test rebuild. --- driver_zodiac.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'driver_zodiac.c') 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; -- cgit v1.2.1