diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 22:27:57 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-02 22:27:57 -0500 |
commit | ee0be19dda937dc2310ab3fda8c0da45b3e6217a (patch) | |
tree | 3288234a4ee758b3f70d024d92e3b956795bb135 /gpspipe.c | |
parent | ada2cedb7edd19d0284f420611cef7e7f9e05d33 (diff) | |
download | gpsd-ee0be19dda937dc2310ab3fda8c0da45b3e6217a.tar.gz |
splint cleanup. All regression tests pass.
Diffstat (limited to 'gpspipe.c')
-rw-r--r-- | gpspipe.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -34,6 +34,7 @@ #include <fcntl.h> #include <termios.h> #include <time.h> +#include <sys/time.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/select.h> @@ -338,7 +339,7 @@ int main(int argc, char **argv) struct tm *tmp_now; /*@-type@*//* splint is confused about struct timespec */ - (void)clock_gettime(CLOCK_REALTIME, &now); + /*@i2@*/(void)clock_gettime(CLOCK_REALTIME, &now); tmp_now = localtime((time_t *)&(now.tv_sec)); (void)strftime(tmstr, sizeof(tmstr), format, tmp_now); new_line = 0; |