From b78d86b400d6e7070cbeb0efd39194248232257c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 17 May 2012 03:07:46 -0400 Subject: Clean up from cppcheck warnings. All regression tests pass. --- lcdgps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lcdgps.c') diff --git a/lcdgps.c b/lcdgps.c index 52bc1fab..4a768055 100644 --- a/lcdgps.c +++ b/lcdgps.c @@ -180,15 +180,14 @@ static enum deg_str_type deg_type = deg_dd; static void update_lcd(struct gps_data_t *gpsdata) { char tmpbuf[255]; - int n; char *s, *gridsquare; - int track; /* Get our location in Maidenhead. */ gridsquare = maidenhead(gpsdata->fix.latitude,gpsdata->fix.longitude); /* Fill in the latitude and longitude. */ if (gpsdata->fix.mode >= MODE_2D) { + int track; s = deg_to_str(deg_type, fabs(gpsdata->fix.latitude)); snprintf(tmpbuf, 254, "widget_set gpsd one 1 1 {Lat: %s %c}\n", s, (gpsdata->fix.latitude < 0) ? 'S' : 'N'); @@ -217,6 +216,7 @@ static void update_lcd(struct gps_data_t *gpsdata) /* Fill in the altitude and fix status. */ if (gpsdata->fix.mode == MODE_3D) { + int n; for(n=0;nfix.climb; avgclimb=0.0; -- cgit v1.2.1