diff options
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; |