summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-28 19:02:23 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-28 19:02:23 -0400
commit009ba6e3452df29cbf1757bc0c79dc14683a98da (patch)
tree4775cfa65e817c69a6f29a0ac87daab8701c7ae2 /gpspipe.c
parent5f710d3469c8da31014000ac13664fe92c57757d (diff)
downloadgpsd-009ba6e3452df29cbf1757bc0c79dc14683a98da.tar.gz
Clean up most spint errors. All regression tests pass.
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 07051414..8ceea716 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -23,7 +23,7 @@
*
*/
-#include <time.h> /* for time_t */
+#include <time.h> /* for time_t */
#include "gpsd_config.h"
#include <stdio.h>
@@ -81,8 +81,10 @@ static void open_serial(char *device)
/* Clear struct for new port settings. */
/*@i@*/ bzero(&newtio, sizeof(newtio));
+#ifndef S_SPLINT_S
/* make it raw */
(void)cfmakeraw(&newtio);
+#endif /* S_SPLINT_S */
/* set speed */
/*@i@*/ (void)cfsetospeed(&newtio, BAUDRATE);
@@ -339,7 +341,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;