diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-16 09:50:48 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-16 09:50:48 -0400 |
commit | 763853a75f1fa1386abf8385ad49360b730a8adf (patch) | |
tree | b3330300c87329996a7bdb36939c7c2b0ef9c4e6 /libgps_json.c | |
parent | a48f7b85d096e68919b4eae8eba5607fe35e3c93 (diff) | |
download | gpsd-763853a75f1fa1386abf8385ad49360b730a8adf.tar.gz |
splint cleanup.
Diffstat (limited to 'libgps_json.c')
-rw-r--r-- | libgps_json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgps_json.c b/libgps_json.c index cebd7961..d3bf1956 100644 --- a/libgps_json.c +++ b/libgps_json.c @@ -362,7 +362,7 @@ int libgps_json_unpack(const char *buf, return -1; #define STARTSWITH(str, prefix) strncmp(str, prefix, sizeof(prefix)-1)==0 if (STARTSWITH(classtag, "\"class\":\"TPV\"")) { - int status = json_tpv_read(buf, gpsdata, end); + status = json_tpv_read(buf, gpsdata, end); gpsdata->status = STATUS_FIX; gpsdata->set = STATUS_SET; if (isnan(gpsdata->fix.time) == 0) @@ -402,7 +402,7 @@ int libgps_json_unpack(const char *buf, } return status; } else if (STARTSWITH(classtag, "\"class\":\"SKY\"")) { - int status = json_sky_read(buf, gpsdata, end); + status = json_sky_read(buf, gpsdata, end); if (status == 0) gpsdata->set |= SATELLITE_SET; return status; |