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_sirf.c | |
parent | 6a0157a94666ae5a653bc297aedc1f6c8f1eaf3a (diff) | |
download | gpsd-032607920d8d6f335e3bfbca1fc76e9d77dc7457.tar.gz |
Full splint cleanup. Partial cppcheck cleanup.
Diffstat (limited to 'monitor_sirf.c')
-rw-r--r-- | monitor_sirf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c index 421674f1..2d5e1d5f 100644 --- a/monitor_sirf.c +++ b/monitor_sirf.c @@ -272,7 +272,7 @@ static void decode_ecef(double x, double y, double z, /*@ -globstate */ static void sirf_update(void) { - int i, j, ch, sv, off; + int i, j, ch, sv; unsigned char *buf; size_t len; uint8_t dgps; @@ -333,7 +333,7 @@ static void sirf_update(void) case 0x04: /* Measured Tracking Data */ ch = (int)getub(buf, 7); for (i = 0; i < ch; i++) { - int az, el, state; + int az, el, state, off; double cn; off = 8 + 15 * i; |