]> git.ipfire.org Git - thirdparty/collectd.git/commit
Fix build due to error in curl_easy_setopt main
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 7 Aug 2025 13:43:57 +0000 (14:43 +0100)
committerMatthias Runge <mrunge@matthias-runge.de>
Fri, 8 Aug 2025 06:29:18 +0000 (08:29 +0200)
commit8baf48968bccccadf45970b71d2ab66f3c47ea15
treebec344f4f18ae21f445362a9e6aa17592ce4f500
parenta586d56022a56692ddfd9dcaf8388d1a8bd7fe81
Fix build due to error in curl_easy_setopt

The builds are failing due to error like:

src/curl.c:349:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  349 |   curl_easy_setopt(wp->curl, CURLOPT_IPRESOLVE, wp->address_family);

src/curl_xml.c:740:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  740 |   curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);

src/curl_json.c:586:3: error: call to '_curl_easy_setopt_err_long' declared with attribute warning: curl_easy_setopt expects a long argument [-Werror=attribute-warning]
  586 |   curl_easy_setopt(db->curl, CURLOPT_IPRESOLVE, db->address_family);

The error were seen during a rebuild in Ubuntu.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
src/curl.c
src/curl_json.c
src/curl_xml.c