diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-17 03:07:46 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-17 03:07:46 -0400 |
commit | b78d86b400d6e7070cbeb0efd39194248232257c (patch) | |
tree | 1b2f6324027bcc630da6df559d571c431b9813fe /isgps.c | |
parent | 0b0b6109b742b49b747202c4d1dd969eaba77915 (diff) | |
download | gpsd-b78d86b400d6e7070cbeb0efd39194248232257c.tar.gz |
Clean up from cppcheck warnings. All regression tests pass.
Diffstat (limited to 'isgps.c')
-rw-r--r-- | isgps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |