Skip to contentSkip to conversation

block/curl.c: Fix CURLOPT_VERBOSE parameter type

PATCH Applied Richard W.M. Jones 2 participants 2 messages Oct 13, 2025 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block/curl.c: Fix CURLOPT_VERBOSE parameter type

In commit ed26056d90 ("block/curl.c: Use explicit long constants in curl_easy_setopt calls") we missed a further call that takes a long parameter.

Thanks: Kevin Wolf

---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/curl.c +1 -1
index 68cf83ce55..d7d93d967f 100644
@@ -524,7 +524,7 @@ static int curl_init_state(BDRVCURLState *s, CURLState *state)
 #endif
 
 #ifdef DEBUG_VERBOSE
-        if (curl_easy_setopt(state->curl, CURLOPT_VERBOSE, 1)) {
+        if (curl_easy_setopt(state->curl, CURLOPT_VERBOSE, 1L)) {
             goto err;
         }
 #endif
Signature · 1 line
2.50.1
Applied
#1 lore raw

Am 13.10.2025 um 14:41 hat Richard W.M. Jones geschrieben:

Quoted 6 lines

In commit ed26056d90 ("block/curl.c: Use explicit long constants in curl_easy_setopt calls") we missed a further call that takes a long parameter.

Thanks: Kevin Wolf

Thanks, applied to the block branch.

Kevin