From nobody Sun Feb 8 06:05:05 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 ARC-Seal: i=1; a=rsa-sha256; t=1571227783; cv=none; d=zoho.com; s=zohoarc; b=LzvcQoudHqNmXlB73p8n3jyzyCO+d7Jl770Eb7Cbp7K5jEwce3x7T7LoXq/webddxgf6/WbIGFxGAIFPOILycFgYSscnZK20Kp/uIp0J+IYwYPGykwwwzLvxabsfvbeeg8TMRq7x+6z+X2FZ1Z9kD1645vw1alZ3a0WI/VS0Ul0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571227783; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=K1Y4zfBnuON99B7bYsAvxEYYnnJWKIXMQ/J43uj1SJU=; b=oWWxixj8LSv/wnu4yqBkq2q2d95bamv5TXyou3kwhtGDHtxvBc+xnCBliy2Ltrm6UgAGY9hC/p9qJ9KMCMUVZQWxCRCuLxHjW0MmiWEmiINCvg7laoqRzlKr4WiXYrTkR6uqNbJ6HrR8Fmu7O0oYdbqtX/Y5If61BLb3zEL+z78= ARC-Authentication-Results: i=1; mx.zoho.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 header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1571227783835918.7773453096298; Wed, 16 Oct 2019 05:09:43 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0F4A3307D97F; Wed, 16 Oct 2019 12:09:42 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D91591001DE4; Wed, 16 Oct 2019 12:09:41 +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 9255083706; Wed, 16 Oct 2019 12:09:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x9GC9LKB020958 for ; Wed, 16 Oct 2019 08:09:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 589D760166; Wed, 16 Oct 2019 12:09:21 +0000 (UTC) Received: from icr.brq.redhat.com (unknown [10.43.2.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id D5495601AC for ; Wed, 16 Oct 2019 12:09:20 +0000 (UTC) From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Date: Wed, 16 Oct 2019 14:09:07 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 6/9] tools: use g_steal_pointer instead of VIR_STEAL_PTR 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: , Content-Type: text/plain; charset="utf-8" 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.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 16 Oct 2019 12:09:42 +0000 (UTC) Signed-off-by: J=C3=A1n Tomko --- tools/virsh-completer-domain.c | 12 ++++++------ tools/virsh-completer-host.c | 4 ++-- tools/virsh-completer-interface.c | 2 +- tools/virsh-completer-network.c | 4 ++-- tools/virsh-completer-nodedev.c | 4 ++-- tools/virsh-completer-nwfilter.c | 4 ++-- tools/virsh-completer-pool.c | 4 ++-- tools/virsh-completer-secret.c | 4 ++-- tools/virsh-completer-snapshot.c | 2 +- tools/virsh-completer-volume.c | 2 +- tools/virsh-domain.c | 2 +- tools/virsh-snapshot.c | 2 +- tools/vsh.c | 2 +- 13 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tools/virsh-completer-domain.c b/tools/virsh-completer-domain.c index 16c209ab36..bb06f468d7 100644 --- a/tools/virsh-completer-domain.c +++ b/tools/virsh-completer-domain.c @@ -66,7 +66,7 @@ virshDomainNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < ndomains; i++) @@ -122,7 +122,7 @@ virshDomainInterfaceCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 @@ -162,7 +162,7 @@ virshDomainDiskTargetCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 @@ -186,7 +186,7 @@ virshDomainEventNameCompleter(vshControl *ctl G_GNUC_UN= USED, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 @@ -249,7 +249,7 @@ virshDomainInterfaceStateCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 @@ -292,7 +292,7 @@ virshDomainDeviceAliasCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 diff --git a/tools/virsh-completer-host.c b/tools/virsh-completer-host.c index ce43818be3..42e59a6656 100644 --- a/tools/virsh-completer-host.c +++ b/tools/virsh-completer-host.c @@ -100,7 +100,7 @@ virshAllocpagesPagesizeCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 @@ -143,6 +143,6 @@ virshCellnoCompleter(vshControl *ctl, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } diff --git a/tools/virsh-completer-interface.c b/tools/virsh-completer-inte= rface.c index 24a69d30b9..6fae0f6584 100644 --- a/tools/virsh-completer-interface.c +++ b/tools/virsh-completer-interface.c @@ -57,7 +57,7 @@ virshInterfaceNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < nifaces; i++) diff --git a/tools/virsh-completer-network.c b/tools/virsh-completer-networ= k.c index 404260b20c..a3d8b71d19 100644 --- a/tools/virsh-completer-network.c +++ b/tools/virsh-completer-network.c @@ -59,7 +59,7 @@ virshNetworkNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < nnets; i++) @@ -88,7 +88,7 @@ virshNetworkEventNameCompleter(vshControl *ctl G_GNUC_UNU= SED, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: return ret; diff --git a/tools/virsh-completer-nodedev.c b/tools/virsh-completer-nodede= v.c index 9bd1d20945..899c199902 100644 --- a/tools/virsh-completer-nodedev.c +++ b/tools/virsh-completer-nodedev.c @@ -57,7 +57,7 @@ virshNodeDeviceNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < ndevs; i++) @@ -86,7 +86,7 @@ virshNodeDeviceEventNameCompleter(vshControl *ctl G_GNUC_= UNUSED, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 diff --git a/tools/virsh-completer-nwfilter.c b/tools/virsh-completer-nwfil= ter.c index 5a86602101..5029becf09 100644 --- a/tools/virsh-completer-nwfilter.c +++ b/tools/virsh-completer-nwfilter.c @@ -55,7 +55,7 @@ virshNWFilterNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < nnwfilters; i++) @@ -95,7 +95,7 @@ virshNWFilterBindingNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < nbindings; i++) diff --git a/tools/virsh-completer-pool.c b/tools/virsh-completer-pool.c index e646d07e65..ceb73eed06 100644 --- a/tools/virsh-completer-pool.c +++ b/tools/virsh-completer-pool.c @@ -60,7 +60,7 @@ virshStoragePoolNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < npools; i++) @@ -89,7 +89,7 @@ virshPoolEventNameCompleter(vshControl *ctl G_GNUC_UNUSED, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } =20 diff --git a/tools/virsh-completer-secret.c b/tools/virsh-completer-secret.c index 38403f275a..a533ac178f 100644 --- a/tools/virsh-completer-secret.c +++ b/tools/virsh-completer-secret.c @@ -57,7 +57,7 @@ virshSecretUUIDCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: for (i =3D 0; i < nsecrets; i++) @@ -86,6 +86,6 @@ virshSecretEventNameCompleter(vshControl *ctl G_GNUC_UNUS= ED, return NULL; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); return ret; } diff --git a/tools/virsh-completer-snapshot.c b/tools/virsh-completer-snaps= hot.c index cad56e2fba..14bd7bc6e4 100644 --- a/tools/virsh-completer-snapshot.c +++ b/tools/virsh-completer-snapshot.c @@ -62,7 +62,7 @@ virshSnapshotNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: virshDomainFree(dom); diff --git a/tools/virsh-completer-volume.c b/tools/virsh-completer-volume.c index 2df0077d7a..f14570f23d 100644 --- a/tools/virsh-completer-volume.c +++ b/tools/virsh-completer-volume.c @@ -62,7 +62,7 @@ virshStorageVolNameCompleter(vshControl *ctl, goto cleanup; } =20 - VIR_STEAL_PTR(ret, tmp); + ret =3D g_steal_pointer(&tmp); =20 cleanup: virStoragePoolFree(pool); diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index f46d30341d..3ba8451470 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -8441,7 +8441,7 @@ cmdDesc(vshControl *ctl, const vshCmd *cmd) } =20 VIR_FREE(desc); - VIR_STEAL_PTR(desc, desc_edited); + desc =3D g_steal_pointer(&desc_edited); } =20 if (virDomainSetMetadata(dom, type, desc, NULL, NULL, flags) < 0) { diff --git a/tools/virsh-snapshot.c b/tools/virsh-snapshot.c index b5e5c234cc..eae19ecd27 100644 --- a/tools/virsh-snapshot.c +++ b/tools/virsh-snapshot.c @@ -1380,7 +1380,7 @@ virshSnapshotListCollect(vshControl *ctl, virDomainPt= r dom, virshSnapSorter); snaplist->nsnaps -=3D deleted; =20 - VIR_STEAL_PTR(ret, snaplist); + ret =3D g_steal_pointer(&snaplist); =20 cleanup: virshSnapshotListFree(snaplist); diff --git a/tools/vsh.c b/tools/vsh.c index a9b2a84122..ee675a63cc 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2796,7 +2796,7 @@ vshCompleterFilter(char ***list, continue; } =20 - VIR_STEAL_PTR(newList[newList_len], (*list)[i]); + newList[newList_len] =3D g_steal_pointer(&(*list)[i]); newList_len++; } =20 --=20 2.19.2 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list