From 763853a75f1fa1386abf8385ad49360b730a8adf Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 16 Apr 2011 09:50:48 -0400 Subject: splint cleanup. --- libgps_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgps_json.c') 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; -- cgit v1.2.1