From 384d2dae41251de6c489a322840336b06148c8b4 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Wed, 29 Jul 2026 10:25:00 +0200 Subject: [PATCH] curl expects a long --- geo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geo.c b/geo.c index 227a0da..24a8dbe 100644 --- a/geo.c +++ b/geo.c @@ -345,7 +345,7 @@ JsonNode *revgeo(struct udata *ud, double lat, double lon, UT_string *addr, UT_s curl_easy_setopt(curl, CURLOPT_USERAGENT, "OwnTracks-Recorder/1.0"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1L); - curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, GEOCODE_TIMEOUT); + curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, (long)GEOCODE_TIMEOUT); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writemem); curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)cbuf);