From nobody Mon Feb 9 00:56:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1524662720485742.8023863309012; Wed, 25 Apr 2018 06:25:20 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B0AB0315008F; Wed, 25 Apr 2018 13:25:18 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5BD7D3141D08; Wed, 25 Apr 2018 13:25:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C1C7E18033EB; Wed, 25 Apr 2018 13:25:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w3PDPBLu002117 for ; Wed, 25 Apr 2018 09:25:11 -0400 Received: by smtp.corp.redhat.com (Postfix) id AE473202342F; Wed, 25 Apr 2018 13:25:11 +0000 (UTC) Received: from caroline.localdomain (unknown [10.43.2.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6B6812024CA4 for ; Wed, 25 Apr 2018 13:25:11 +0000 (UTC) Received: from caroline.brq.redhat.com (caroline.usersys.redhat.com [127.0.0.1]) by caroline.localdomain (Postfix) with ESMTP id 199A9120071 for ; Wed, 25 Apr 2018 15:25:09 +0200 (CEST) From: Martin Kletzander To: libvir-list@redhat.com Date: Wed, 25 Apr 2018 15:24:44 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 07/30] hyperv/: Remove spaces after casts X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Wed, 25 Apr 2018 13:25:19 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Martin Kletzander Reviewed-by: J=EF=BF=BDn Tomko --- src/hyperv/hyperv_driver.c | 8 ++++---- src/hyperv/hyperv_wmi.c | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index d02c0ac3734e..95496bdf7311 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -1466,8 +1466,8 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int= codeset, cleanup: VIR_FREE(translatedKeycodes); VIR_FREE(selector); - hypervFreeObject(priv, (hypervObject *) keyboard); - hypervFreeObject(priv, (hypervObject *) computerSystem); + hypervFreeObject(priv, (hypervObject *)keyboard); + hypervFreeObject(priv, (hypervObject *)computerSystem); virBufferFreeAndReset(&query); return result; } @@ -1572,8 +1572,8 @@ hypervDomainSetMemoryFlags(virDomainPtr domain, unsig= ned long memory, virBufferFreeAndReset(&eprQuery); cleanup: VIR_FREE(memory_str); - hypervFreeObject(priv, (hypervObject *) vssd); - hypervFreeObject(priv, (hypervObject *) memsd); + hypervFreeObject(priv, (hypervObject *)vssd); + hypervFreeObject(priv, (hypervObject *)memsd); return result; } =20 diff --git a/src/hyperv/hyperv_wmi.c b/src/hyperv/hyperv_wmi.c index 5e2b3d7edf5b..0f39bd443134 100644 --- a/src/hyperv/hyperv_wmi.c +++ b/src/hyperv/hyperv_wmi.c @@ -907,7 +907,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokePar= amsListPtr params, case MSVM_CONCRETEJOB_JOBSTATE_STARTING: case MSVM_CONCRETEJOB_JOBSTATE_RUNNING: case MSVM_CONCRETEJOB_JOBSTATE_SHUTTING_DOWN: - hypervFreeObject(priv, (hypervObject *) job); + hypervFreeObject(priv, (hypervObject *)job); job =3D NULL; usleep(100 * 1000); /* sleep 100 ms */ timeout -=3D 100; @@ -955,7 +955,7 @@ hypervInvokeMethod(hypervPrivate *priv, hypervInvokePar= amsListPtr params, VIR_FREE(returnValue); VIR_FREE(instanceID); virBufferFreeAndReset(&query); - hypervFreeObject(priv, (hypervObject *) job); + hypervFreeObject(priv, (hypervObject *)job); hypervFreeInvokeParams(params); return result; } @@ -1254,7 +1254,7 @@ hypervGetMsvmComputerSystemList(hypervPrivate *priv, = virBufferPtr query, Msvm_ComputerSystem **list) { return hypervGetWmiClassList(priv, Msvm_ComputerSystem_WmiInfo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1262,7 +1262,7 @@ hypervGetMsvmConcreteJobList(hypervPrivate *priv, vir= BufferPtr query, Msvm_ConcreteJob **list) { return hypervGetWmiClassList(priv, Msvm_ConcreteJob_WmiInfo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1270,7 +1270,7 @@ hypervGetWin32ComputerSystemList(hypervPrivate *priv,= virBufferPtr query, Win32_ComputerSystem **list) { return hypervGetWmiClassList(priv, Win32_ComputerSystem_WmiInfo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1278,7 +1278,7 @@ hypervGetWin32ProcessorList(hypervPrivate *priv, virB= ufferPtr query, Win32_Processor **list) { return hypervGetWmiClassList(priv, Win32_Processor_WmiInfo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1287,7 +1287,7 @@ hypervGetMsvmVirtualSystemSettingDataList(hypervPriva= te *priv, Msvm_VirtualSystemSettingData **= list) { return hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiIn= fo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1296,7 +1296,7 @@ hypervGetMsvmProcessorSettingDataList(hypervPrivate *= priv, Msvm_ProcessorSettingData **list) { return hypervGetWmiClassList(priv, Msvm_ProcessorSettingData_WmiInfo, = query, - (hypervObject **) list); + (hypervObject **)list); } =20 int @@ -1304,14 +1304,14 @@ hypervGetMsvmMemorySettingDataList(hypervPrivate *p= riv, virBufferPtr query, Msvm_MemorySettingData **list) { return hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, que= ry, - (hypervObject **) list); + (hypervObject **)list); } =20 int hypervGetMsvmKeyboardList(hypervPrivate *priv, virBufferPtr query, Msvm_Keyboard **list) { return hypervGetWmiClassList(priv, Msvm_Keyboard_WmiInfo, query, - (hypervObject **) list); + (hypervObject **)list); } =20 =20 @@ -1621,7 +1621,7 @@ hypervGetMsvmVirtualSystemSettingDataFromUUID(hypervP= rivate *priv, uuid_string); =20 if (hypervGetWmiClassList(priv, Msvm_VirtualSystemSettingData_WmiInfo,= &query, - (hypervObject **) list) < 0 || *list =3D=3D NULL) + (hypervObject **)list) < 0 || *list =3D=3D NULL) return -1; =20 return 0; @@ -1646,7 +1646,7 @@ hypervGetMsvmMemorySettingDataFromVSSD(hypervPrivate = *priv, vssd_instanceid); =20 if (hypervGetWmiClassList(priv, Msvm_MemorySettingData_WmiInfo, &query, - (hypervObject **) list) < 0 || *list =3D=3D NULL) + (hypervObject **)list) < 0 || *list =3D=3D NULL) return -1; =20 return 0; --=20 2.17.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list