diff options
author | Gary E. Miller <gem@rellim.com> | 2016-09-07 02:36:40 +0100 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-09-07 02:36:40 +0100 |
commit | 8388375a95c1d7b02265a2932824c874463ffe47 (patch) | |
tree | ff14d6d66dd9803a97da2bf88d50d14ed82a8f83 /gpsd_json.c | |
parent | 56c7f38ea6f67748238571028a3bf6a3bebb3eb3 (diff) | |
download | gpsd-8388375a95c1d7b02265a2932824c874463ffe47.tar.gz |
Fix a bad cast
Use (void) when a function result is unused.
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index c0893775..b7105de0 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -194,7 +194,7 @@ void json_tpv_dump(const struct gps_device_t *session, if (policy->timing) { char rtime_str[TIMESPEC_LEN]; struct timespec rtime_tmp; - (int)clock_gettime(CLOCK_REALTIME, &rtime_tmp); + (void)clock_gettime(CLOCK_REALTIME, &rtime_tmp); timespec_str(&rtime_tmp, rtime_str, sizeof(rtime_str)); str_appendf(reply, replylen, "\"rtime\":%s,", rtime_str); #ifdef PPS_ENABLE |