diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 18:56:24 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 18:56:24 -0500 |
commit | 209144664fa758bc27f334a32b76fab9813c6f97 (patch) | |
tree | 2a6b405315d4ac7498a8a698ad4330cb06cf90cc /libgps_json.c | |
parent | 326523756d2e93cec14d536d3860b4fa48fa10f7 (diff) | |
download | gpsd-209144664fa758bc27f334a32b76fab9813c6f97.tar.gz |
Partial splint cleanup. All regression tests pass. PPS is live.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_json.c b/libgps_json.c index d5590c14..83cfbb8e 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -381,10 +381,14 @@ static int json_pps_read(const char *buf, struct gps_data_t *gpsdata, * This is theoretically dodgy, but in practice likely not * to break until GPSes are obsolete. */ + /*@-usedef@*/ + /*@-type@*//* splint is confused about struct timespec */ gpsdata->timedrift.real.tv_sec = (long)real_sec; gpsdata->timedrift.real.tv_nsec = (time_t)real_nsec; gpsdata->timedrift.clock.tv_sec = (long)clock_sec; gpsdata->timedrift.clock.tv_nsec = (time_t)clock_nsec; + /*@+type@*/ + /*@+usedef@*/ if (status != 0) return status; |