summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-02 22:27:57 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-03-02 22:27:57 -0500
commitee0be19dda937dc2310ab3fda8c0da45b3e6217a (patch)
tree3288234a4ee758b3f70d024d92e3b956795bb135 /gpspipe.c
parentada2cedb7edd19d0284f420611cef7e7f9e05d33 (diff)
downloadgpsd-ee0be19dda937dc2310ab3fda8c0da45b3e6217a.tar.gz
splint cleanup. All regression tests pass.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpspipe.c b/gpspipe.c
index a9432959..d6602000 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -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;