From nobody Sun May 19 06:05:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1674035230; cv=none; d=zohomail.com; s=zohoarc; b=bx1ptz6HOFXiQ990BiIYqaVSZzN/OctlCQsLtWB5LApMDYs1TiQlJs1RSzYRhHgBZhR1ema5dQ9HuG2ZvNRyiYn0zt5L2QDy0lSNbg/vamyz04ko7UO27CY3yxrLHgsOQEefVk86Fz0X4Y5Hz1Denzv9Qf2hldZjv5FYoOgWEsA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674035230; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=NgniBx9WhhKDUp+NlgPJ5YPa8v71Fl8fuzfeFb3IuTI=; b=DhqMitYeAUlAE6G2gWRGR3UzhHSPO1mudH5QfUJN+4n1stZxfjHWNaXGJLdck54L1IQC2f7tO1YvARI1e+KPLTBfmkB3r/WNTRwmeH3H0RDfLdEh3yKORGQ9sT754fqMYgiXyxVXXBMggGuhkyh+1McnLHm/K9P6tJ1gOEAMeoA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1674035230446948.0309853213581; Wed, 18 Jan 2023 01:47:10 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-261-ItSTkP0JMomYjPCMEOl_Ww-1; Wed, 18 Jan 2023 04:47:06 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F416785CBE4; Wed, 18 Jan 2023 09:47:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE4372026D4B; Wed, 18 Jan 2023 09:47:00 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id B9E2A1946A45; Wed, 18 Jan 2023 09:47:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2919919465B7 for ; Wed, 18 Jan 2023 09:46:59 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id F08761121318; Wed, 18 Jan 2023 09:46:58 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.33.36.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 70B2E1121315; Wed, 18 Jan 2023 09:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674035229; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=NgniBx9WhhKDUp+NlgPJ5YPa8v71Fl8fuzfeFb3IuTI=; b=SbanIWGpv8I/yMoj/P9I1W/WIrfOWwwjoLEG0K2HD4G+bZpZNu1ZltrAr1S6YrjV/G/1Y3 Nyg8PP5hqpvCmm/iAZNLtZYLYUfRi7SbCvNwunPky0+zKxrNhzTrXhAqY5ErSCWfjXa9xx Bt/Fivo9Wr/5cQgT/UGRU/VYjh2qRy8= X-MC-Unique: ItSTkP0JMomYjPCMEOl_Ww-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] ch: use CURLOPT_UPLOAD instead of CURLOPT_PUT Date: Wed, 18 Jan 2023 09:46:55 +0000 Message-Id: <20230118094655.444885-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1674035232554100001 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 We already use CURLOPT_UPLOAD in the ESX driver, so this brings the CH driver into line. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Michal Privoznik --- src/ch/ch_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c index 8d8654332f..7b8f0a8077 100644 --- a/src/ch/ch_monitor.c +++ b/src/ch/ch_monitor.c @@ -660,7 +660,7 @@ virCHMonitorPutNoContent(virCHMonitor *mon, const char = *endpoint) =20 curl_easy_setopt(mon->handle, CURLOPT_UNIX_SOCKET_PATH, mon->socketpat= h); curl_easy_setopt(mon->handle, CURLOPT_URL, url); - curl_easy_setopt(mon->handle, CURLOPT_PUT, true); + curl_easy_setopt(mon->handle, CURLOPT_UPLOAD, 1L); curl_easy_setopt(mon->handle, CURLOPT_HTTPHEADER, NULL); =20 responseCode =3D virCHMonitorCurlPerform(mon->handle); --=20 2.39.0