summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar2019-06-25 14:43:18 +0000
committerPetr Štetiar2019-06-25 14:43:18 +0000
commit198c06051dd020a0f5776f3a80ebda7ee0659d90 (patch)
tree9ff41801f51745dfdaf695cd0b27cbb0ae4b7a66
parentfc2ab8756b3bee3ba193790d8ce8577c4c6b534d (diff)
downloadugps-198c06051dd020a0f5776f3a80ebda7ee0659d90.tar.gz
Fix build error caused by enabled extra compiler warnings
nmea.c:257:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r--nmea.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nmea.c b/nmea.c
index 42be71e..e2b2937 100644
--- a/nmea.c
+++ b/nmea.c
@@ -233,7 +233,8 @@ static void
nmea_process(char *a)
{
char *csum;
- int cnt, i;
+ int cnt;
+ unsigned int i;
if (strncmp(a, "$GP", 3))
return;