diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 20:21:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-05 20:21:42 -0500 |
commit | 032607920d8d6f335e3bfbca1fc76e9d77dc7457 (patch) | |
tree | 632e28102497e16d43be91ca0dbcec5a7ed5041c /monitor_oncore.c | |
parent | 6a0157a94666ae5a653bc297aedc1f6c8f1eaf3a (diff) | |
download | gpsd-032607920d8d6f335e3bfbca1fc76e9d77dc7457.tar.gz |
Full splint cleanup. Partial cppcheck cleanup.
Diffstat (limited to 'monitor_oncore.c')
-rw-r--r-- | monitor_oncore.c | 3 |
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 @*/ |