summaryrefslogtreecommitdiff
path: root/ntpshmwrite.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-13 08:44:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-13 08:44:04 -0400
commitdf28d9d7f9eabd2373df031fa2939d0b41ee6caa (patch)
tree71ea48f96eeb2d42457764a0e64c0c109c92ffa7 /ntpshmwrite.c
parentf0a7a853d5eac933f60b562f3b44102296c9e23f (diff)
downloadgpsd-df28d9d7f9eabd2373df031fa2939d0b41ee6caa.tar.gz
splint/cppcheck/coverity prerelease cleanup.
Diffstat (limited to 'ntpshmwrite.c')
-rw-r--r--ntpshmwrite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ntpshmwrite.c b/ntpshmwrite.c
index 6370ee47..217f9514 100644
--- a/ntpshmwrite.c
+++ b/ntpshmwrite.c
@@ -33,11 +33,13 @@ void ntp_write(volatile struct shmTime *shmseg,
* GPS emits leap pending for 3 months prior to insertion
* NTP expects leap pending for only 1 month prior to insertion
* Per http://bugs.ntp.org/1090 */
+ /*@-type@*//* splint is confused about struct timespec */
(void)gmtime_r( &(td->real.tv_sec), &tm);
if ( 5 != tm.tm_mon && 11 != tm.tm_mon ) {
/* Not june, not December, no way */
leap_notify = LEAP_NOWARNING;
}
+ /*@-type@*/
/* we use the shmTime mode 1 protocol
*