]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ch: use CURLOPT_UPLOAD instead of CURLOPT_PUT
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 18 Jan 2023 09:45:52 +0000 (09:45 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 18 Jan 2023 13:45:56 +0000 (13:45 +0000)
commit9cd70fb25cad171e415fb05a4e01f244304c602e
tree5aad1b4bfca486fd1e1eadf5b480f92f2f3e3e00
parentd6c7c6823ad2c22d8092d351bd5b85af76c8e614
ch: use CURLOPT_UPLOAD instead of CURLOPT_PUT

The CURLOPT_PUT constant causes a deprecation warning when compiling on
Alpine Edge.  The docs indicate it is deprecated since 7.2.1

  https://curl.se/libcurl/c/CURLOPT_PUT.html

Since 7.87 the deprecation is now exposed at build time via a compiler
warning.

We already use CURLOPT_UPLOAD in the ESX driver, so this brings the CH
driver into line.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/ch/ch_monitor.c