From 8baf48968bccccadf45970b71d2ab66f3c47ea15 Mon Sep 17 00:00:00 2001 From: Sudip Mukherjee Date: Thu, 7 Aug 2025 14:43:57 +0100 Subject: [PATCH] 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 --- src/curl.c | 2 +- src/curl_json.c | 2 +- src/curl_xml.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/curl.c b/src/curl.c index 3e9368545..dea1fa239 100644 --- a/src/curl.c +++ b/src/curl.c @@ -57,7 +57,7 @@ struct web_page_s /* {{{ */ char *instance; char *url; - int address_family; + long address_family; char *user; char *pass; char *credentials; diff --git a/src/curl_json.c b/src/curl_json.c index edfaf00ea..0f1e3d316 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -88,7 +88,7 @@ struct cj_s /* {{{ */ char *sock; char *url; - int address_family; + long address_family; char *user; char *pass; char *credentials; diff --git a/src/curl_xml.c b/src/curl_xml.c index 4524ac336..a3fd78d34 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -76,7 +76,7 @@ struct cx_s /* {{{ */ char *host; char *url; - int address_family; + long address_family; char *user; char *pass; char *credentials; -- 2.47.2