]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
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)
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

index 3e9368545521140894b0087f2caa88c7eb36f7f7..dea1fa2394bb8d5416bcc5f3ff45a7229f96e605 100644 (file)
@@ -57,7 +57,7 @@ struct web_page_s /* {{{ */
   char *instance;
 
   char *url;
-  int address_family;
+  long address_family;
   char *user;
   char *pass;
   char *credentials;
index edfaf00ea97606a78f4a47c9a6b140f7352e4f82..0f1e3d3162e9e5806799190d458c700de0fb7d5e 100644 (file)
@@ -88,7 +88,7 @@ struct cj_s /* {{{ */
   char *sock;
 
   char *url;
-  int address_family;
+  long address_family;
   char *user;
   char *pass;
   char *credentials;
index 4524ac33669a80552d7e91b0191fd3e31be47b07..a3fd78d34cf0065083cf79e42fd0ebd68a7a87ea 100644 (file)
@@ -76,7 +76,7 @@ struct cx_s /* {{{ */
   char *host;
 
   char *url;
-  int address_family;
+  long address_family;
   char *user;
   char *pass;
   char *credentials;