diff options
author | Zbigniew Chyla <zbigniew.chyla@nsn.com> | 2015-02-16 01:30:08 +0100 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-15 22:02:43 -0500 |
commit | 283e1ba3940a44ae02c435f7539728f15cc4a276 (patch) | |
tree | ca35fa2a5c59cc1ead0e36f942b7026b367d0078 /gpsd_json.c | |
parent | f4797ec77868b049d2b167d43fea0c7cc6710de5 (diff) | |
download | gpsd-283e1ba3940a44ae02c435f7539728f15cc4a276.tar.gz |
Fix compilation error
Fix compilation error that shows up only when building with
"timing=true pps=true".
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 1922b0ed..d92574fb 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -186,12 +186,13 @@ void json_tpv_dump(const struct gps_device_t *session, if (policy->timing) { #ifdef PPS_ENABLE /*@-type -formattype@*/ /* splint is confused about struct timespec */ - if (session->ppscount) + if (session->ppscount) { char ts_str[TIMESPEC_LEN]; /* buffer to hold printable timespec */ /* you can not use a double here as you will lose 11 bits * of precision */ (void)timespec_str( &session->ppslast.clock, ts_str, sizeof(ts_str) ); str_appendf(reply, replylen, "\"pps\":%s,", ts_str); + } /*@+type +formattype@*/ #endif /* PPS_ENABLE */ str_appendf(reply, replylen, |