diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 08:23:23 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 08:23:23 -0500 |
commit | 26a89dc1b4a84759523a888c350a42779a743fd1 (patch) | |
tree | b114fa5605d0f0b0239edd37b5cd2b7c8181a19f /gpspipe.c | |
parent | 83dd6fb2aa43a49120d39517b1cbe1d11a834c11 (diff) | |
download | gpsd-26a89dc1b4a84759523a888c350a42779a743fd1.tar.gz |
More splint cleanup.
Diffstat (limited to 'gpspipe.c')
-rw-r--r-- | gpspipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -337,6 +337,7 @@ int main(int argc, char **argv) struct timespec now; struct tm *tmp_now; + /*@-type@*//* splint is confused about struct timespec */ (void)clock_gettime(CLOCK_REALTIME, &now); tmp_now = localtime((time_t *)&(now.tv_sec)); (void)strftime(tmstr, sizeof(tmstr), format, tmp_now); @@ -365,6 +366,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } } + /*@+type@*/ if (fputc(c, fp) == EOF) { fprintf(stderr, "gpspipe: Write Error, %s(%d)\n", strerror(errno), errno); |