curl expects a long

This commit is contained in:
Jan-Piet Mens
2026-07-29 10:25:00 +02:00
parent a2e2e83d32
commit 384d2dae41
+1 -1
View File
@@ -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);