[OpenWrt-Devel] [PATCH] ugps: Fix compilation under 64-bit
Rosen Penev
rosenp at gmail.com
Sun Jun 23 17:52:10 EDT 2019
strlen returns size_t, not int.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
nmea.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nmea.c b/nmea.c
index 42be71e..7d75ab8 100644
--- 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;
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list