]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: pass 'long' to curl_easy_setopt when needed
authorJán Tomko <jtomko@redhat.com>
Tue, 2 Sep 2025 12:04:40 +0000 (14:04 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 8 Sep 2025 14:12:40 +0000 (16:12 +0200)
commit6d912238ca47569993446eedc52850d7d2f78371
treef0033ae4c1753f0a3a30fb80c38ed13784cd7051
parentd05443820e2204e309a957147906c94b82529051
esx: pass 'long' to curl_easy_setopt when needed

The include header got its type checks fixed in curl 8.14:
https://github.com/curl/curl/commit/79b4e56b3f30dc1ac28a81128a07d27338e5219e
https://github.com/curl/curl/pull/17143

This causes a warning on rawhide with clang:
../src/esx/esx_vi.c:318:5: error: call to '_curl_easy_setopt_err_long'
declared with 'warning' attribute: curl_easy_setopt expects a long
argument [-Werror,-Wattribute-warning]
  318 |     curl_easy_setopt(curl->handle, CURLOPT_NOSIGNAL, 1);
      |     ^

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/esx/esx_stream.c
src/esx/esx_vi.c