summaryrefslogtreecommitdiff
path: root/driver_nmea0183.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-06 19:00:04 -0400
commit9c7e8629876fb3ff115902e37fe562641ce9de11 (patch)
tree08ca2e4206ccc0dbda2ee946d907763ae9166aab /driver_nmea0183.c
parentdb56959e1cf2670edb02f27f25580bb4272e9df2 (diff)
downloadgpsd-9c7e8629876fb3ff115902e37fe562641ce9de11.tar.gz
Clean up C and Python code-checker warnings.
Diffstat (limited to 'driver_nmea0183.c')
-rw-r--r--driver_nmea0183.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_nmea0183.c b/driver_nmea0183.c
index 58a61156..94cf4dc3 100644
--- a/driver_nmea0183.c
+++ b/driver_nmea0183.c
@@ -1800,7 +1800,7 @@ gps_mask_t nmea_parse(char *sentence, struct gps_device_t * session)
int count;
gps_mask_t retval = 0;
unsigned int i, thistag;
- char *p, *s, *e;
+ char *p, *e;
volatile char *t;
#ifdef SKYTRAQ_ENABLE
bool skytraq_sti = false;
@@ -1866,7 +1866,7 @@ gps_mask_t nmea_parse(char *sentence, struct gps_device_t * session)
/* dispatch on field zero, the sentence tag */
for (thistag = i = 0;
i < (unsigned)(sizeof(nmea_phrase) / sizeof(nmea_phrase[0])); ++i) {
- s = session->nmea.field[0];
+ char *s = session->nmea.field[0];
if (strlen(nmea_phrase[i].name) == 3
#ifdef SKYTRAQ_ENABLE
/* $STI is special */