summaryrefslogtreecommitdiff
path: root/isgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-05-17 03:07:46 -0400
committerEric S. Raymond <esr@thyrsus.com>2012-05-17 03:07:46 -0400
commitb78d86b400d6e7070cbeb0efd39194248232257c (patch)
tree1b2f6324027bcc630da6df559d571c431b9813fe /isgps.c
parent0b0b6109b742b49b747202c4d1dd969eaba77915 (diff)
downloadgpsd-b78d86b400d6e7070cbeb0efd39194248232257c.tar.gz
Clean up from cppcheck warnings. All regression tests pass.
Diffstat (limited to 'isgps.c')
-rw-r--r--isgps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isgps.c b/isgps.c
index 27cf92e1..9d465479 100644
--- a/isgps.c
+++ b/isgps.c
@@ -180,8 +180,6 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
bool(*length_check) (struct gps_packet_t *),
size_t maxlen, unsigned int c)
{
- enum isgpsstat_t res;
-
/* ASCII characters 64-127, @ through DEL */
if ((c & MAG_TAG_MASK) != MAG_TAG_DATA) {
gpsd_report(ISGPS_ERRLEVEL_BASE + 1,
@@ -222,6 +220,8 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
} /* end while */
}
if (session->isgps.locked) {
+ enum isgpsstat_t res;
+
res = ISGPS_SYNC;
if (session->isgps.curr_offset > 0) {