summaryrefslogtreecommitdiff
path: root/subframe.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-06 08:06:51 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-06 08:07:42 -0500
commitd93ba6e008cb6a7f75adf3d4c08876cf96fe95b0 (patch)
treedad294889820f98f7d7a9e50e0f9baac12796977 /subframe.c
parentf597416e78989e83b67608a4fb0542e2b33554d5 (diff)
downloadgpsd-d93ba6e008cb6a7f75adf3d4c08876cf96fe95b0.tar.gz
More cppcheck cleanup. All regression tests pass. PPS is live.
Diffstat (limited to 'subframe.c')
-rw-r--r--subframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subframe.c b/subframe.c
index eaf34779..7f6181f9 100644
--- a/subframe.c
+++ b/subframe.c
@@ -163,7 +163,6 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
*/
/* FIXME!! I really doubt this is Big Endian compatible */
uint8_t preamble;
- int i = 0; /* handy loop counter */
struct subframe_t *subp = &session->gpsdata.subframe;
gpsd_report(session->context->debug, LOG_IO,
"50B: gpsd_interpret_subframe: (%d) "
@@ -334,6 +333,7 @@ gps_mask_t gpsd_interpret_subframe(struct gps_device_t *session,
break;
case 4:
{
+ int i = 0; /* handy loop counter */
int sv = -2;
switch (subp->pageid) {
case 0: