ugps: Fix compilation under 64-bit
authorRosen Penev <rosenp@gmail.com>
Sun, 23 Jun 2019 21:52:10 +0000 (14:52 -0700)
committerPetr Štetiar <ynezz@true.cz>
Tue, 25 Jun 2019 14:44:53 +0000 (16:44 +0200)
strlen returns size_t, not int.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
nmea.c

diff --git a/nmea.c b/nmea.c
index e2b2937070eb6aa7bad7d16b6bed04f33cd05025..0223b9bbfae9a157bad9f5bfb91c46b1a2d8608d 100644 (file)
--- a/nmea.c
+++ b/nmea.c
@@ -118,7 +118,7 @@ nmea_rmc_cb(void)
        }
 
        if (strlen(nmea_params[3].str) < 9 || strlen(nmea_params[5].str) < 10) {
-               ERROR("lat/lng have invalid string length %d<9, %d<10\n",
+               ERROR("lat/lng have invalid string length %zu<9, %zu<10\n",
                       strlen(nmea_params[3].str), strlen(nmea_params[5].str));
        } else {
                float minutes;