From: Tobias Brunner Date: Mon, 15 Sep 2025 14:50:26 +0000 (+0200) Subject: curl: Fix types enforced by compiler check in newer libcurl headers X-Git-Tag: 6.0.3dr1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45f5a7a69892ea756ce55e5d311e0afd863f354e;p=thirdparty%2Fstrongswan.git curl: Fix types enforced by compiler check in newer libcurl headers --- diff --git a/src/libstrongswan/plugins/curl/curl_fetcher.c b/src/libstrongswan/plugins/curl/curl_fetcher.c index 80d989c2d0..2933152952 100644 --- a/src/libstrongswan/plugins/curl/curl_fetcher.c +++ b/src/libstrongswan/plugins/curl/curl_fetcher.c @@ -115,14 +115,14 @@ METHOD(fetcher_t, fetch, status_t, goto out; } curl_easy_setopt(this->curl, CURLOPT_ERRORBUFFER, error); - curl_easy_setopt(this->curl, CURLOPT_FAILONERROR, FALSE); - curl_easy_setopt(this->curl, CURLOPT_NOSIGNAL, TRUE); + curl_easy_setopt(this->curl, CURLOPT_FAILONERROR, (long)FALSE); + curl_easy_setopt(this->curl, CURLOPT_NOSIGNAL, (long)TRUE); if (this->timeout) { curl_easy_setopt(this->curl, CURLOPT_TIMEOUT, this->timeout); } - curl_easy_setopt(this->curl, CURLOPT_CONNECTTIMEOUT, CONNECT_TIMEOUT); - curl_easy_setopt(this->curl, CURLOPT_FOLLOWLOCATION, TRUE); + curl_easy_setopt(this->curl, CURLOPT_CONNECTTIMEOUT, (long)CONNECT_TIMEOUT); + curl_easy_setopt(this->curl, CURLOPT_FOLLOWLOCATION, (long)TRUE); curl_easy_setopt(this->curl, CURLOPT_MAXREDIRS, this->redir); curl_easy_setopt(this->curl, CURLOPT_WRITEFUNCTION, (void*)curl_cb); curl_easy_setopt(this->curl, CURLOPT_WRITEDATA, &data);