summaryrefslogtreecommitdiff
path: root/monitor_oncore.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-05 20:21:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-05 20:21:42 -0500
commit032607920d8d6f335e3bfbca1fc76e9d77dc7457 (patch)
tree632e28102497e16d43be91ca0dbcec5a7ed5041c /monitor_oncore.c
parent6a0157a94666ae5a653bc297aedc1f6c8f1eaf3a (diff)
downloadgpsd-032607920d8d6f335e3bfbca1fc76e9d77dc7457.tar.gz
Full splint cleanup. Partial cppcheck cleanup.
Diffstat (limited to 'monitor_oncore.c')
-rw-r--r--monitor_oncore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor_oncore.c b/monitor_oncore.c
index f5aec8da..43529e82 100644
--- a/monitor_oncore.c
+++ b/monitor_oncore.c
@@ -175,7 +175,7 @@ static bool oncore_initialize(void)
static void oncore_update(void)
{
- unsigned int i, j, off;
+ unsigned int i, off;
unsigned char *buf;
unsigned int type;
@@ -297,6 +297,7 @@ static void oncore_update(void)
memset(Bblines, 0, sizeof(Bblines));
Bblines_mask = 0;
for (i = 0; i < ch; i++) {
+ unsigned int j;
off = 5 + 7 * i;
sv = (unsigned char)getub(buf, off);
/*@ -boolops @*/