diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-28 19:02:23 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-28 19:02:23 -0400 |
commit | 009ba6e3452df29cbf1757bc0c79dc14683a98da (patch) | |
tree | 4775cfa65e817c69a6f29a0ac87daab8701c7ae2 /gpspipe.c | |
parent | 5f710d3469c8da31014000ac13664fe92c57757d (diff) | |
download | gpsd-009ba6e3452df29cbf1757bc0c79dc14683a98da.tar.gz |
Clean up most spint errors. All regression tests pass.
Diffstat (limited to 'gpspipe.c')
-rw-r--r-- | gpspipe.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; |