diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 13:29:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-12 13:29:42 -0500 |
commit | 9b14a8cd3a90e005c6f5f0708119ad839243d812 (patch) | |
tree | aab33f89d813b41ac885ccfdec8a57bd4f34331e /monitor_sirf.c | |
parent | 663a717e9f50795795f546f77d83db014135fa52 (diff) | |
download | gpsd-9b14a8cd3a90e005c6f5f0708119ad839243d812.tar.gz |
Fix pps=no build.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r-- | monitor_sirf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c index 2d49fdc8..edf790b5 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -277,7 +277,9 @@ static void sirf_update(void) size_t len; uint8_t dgps; char tbuf[JSON_DATE_MAX+1]; +#ifdef PPS_ENABLE struct timedrift_t drift; +#endif /* PPS_ENABLE */ /* splint pacification */ assert(mid2win!=NULL && mid27win != NULL); @@ -581,6 +583,7 @@ static void sirf_update(void) } /*@ +nullpass -nullderef @*/ +#ifdef PPS_ENABLE /* Not a CSD field, but there's no better place to put it */ if (pps_thread_lastpps(&session, &drift) > 0) { /*@-type@*/ /* splint is confused about struct timespec */ @@ -589,6 +592,7 @@ static void sirf_update(void) display(mid7win, 2, 39, "%.9f", timedelta); /* PPS offset */ wnoutrefresh(mid7win); } +#endif /* PPS_ENABLE */ } /*@ +globstate */ |