[PATCH] block/curl.c: Fix CURLOPT_VERBOSE parameter type

Richard W.M. Jones posted 1 patch 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251013124127.604401-1-rjones@redhat.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
block/curl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] block/curl.c: Fix CURLOPT_VERBOSE parameter type
Posted by Richard W.M. Jones 1 month ago
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.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Thanks: Kevin Wolf
---
 block/curl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/curl.c b/block/curl.c
index 68cf83ce55..d7d93d967f 100644
--- a/block/curl.c
+++ b/block/curl.c
@@ -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
-- 
2.50.1
Re: [PATCH] block/curl.c: Fix CURLOPT_VERBOSE parameter type
Posted by Kevin Wolf 1 month ago
Am 13.10.2025 um 14:41 hat Richard W.M. Jones geschrieben:
> 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.
> 
> Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
> Thanks: Kevin Wolf

Thanks, applied to the block branch.

Kevin