From nobody Mon Feb 9 00:07:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1636986194; cv=none; d=zohomail.com; s=zohoarc; b=mziTLCH0UyTBDPgmjyfF80KBVghGk6r6+pUPQmZCOA8AEniFTJWkeoM0M86MHP2OxZ1owVZsOPm8OoHDVV2p2Ep6hBjHsrw6EY2K54MbRX7vR91TCks/+1Q8Rg5BLR7R7aNF0JPnSHOH0dao+Ycn7R2a0pI3C3tgV13XSTIJhf0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1636986194; 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=UvXO+peRwi/wYhmF2ZJw++rUFMwf/H7G1TzW4pl657o=; b=CNQwpZnBp3x4U218eVbJMhbW7sdljd1o6LwA5CwgDghOCzANkeiDsT9yxOVnmb9SvSe/tVA/5VeJOy8djW4X1kpmJ5q6nbz0MhqTMKe5p8nZDNREaZW1XaPH6qbYFglwGzU/Khp7HFm7VLFfDnB/lHZqgZr9c22UDn4/FerHTgg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1636986194589233.20102292040838; Mon, 15 Nov 2021 06:23:14 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-405-yBWmmp-KP1ChoVMX6_DLsA-1; Mon, 15 Nov 2021 09:23:12 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 134BC10B744E; Mon, 15 Nov 2021 14:23:07 +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 E726E5C1A1; Mon, 15 Nov 2021 14:23:06 +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 AF52D4EA3B; Mon, 15 Nov 2021 14:23:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1AFEN6vo010085 for ; Mon, 15 Nov 2021 09:23:06 -0500 Received: by smtp.corp.redhat.com (Postfix) id 2AF4822719; Mon, 15 Nov 2021 14:23:06 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7E8A7707B6 for ; Mon, 15 Nov 2021 14:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636986193; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=UvXO+peRwi/wYhmF2ZJw++rUFMwf/H7G1TzW4pl657o=; b=Hr8UQbNf32cjF5hcJHgYXMg81zKbc0NLTIhXQSJtCDr7Sazpl6iDILIHSWJmajOD9CiI4f 6ULFjJ4Y4wn5S2w+QugNc3tYIOr//1ufpE9keiq5Q8n23RjORjJZSKrwGsvD6sS6O8Xp1U qV8XiXHomGe8r7pch9i8Fks9R6hzl0M= X-MC-Unique: yBWmmp-KP1ChoVMX6_DLsA-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 15/18] Replace virJSONValueObjectCreateVArgs with virJSONValueObjectAddVArgs Date: Mon, 15 Nov 2021 15:22:14 +0100 Message-Id: <72be1eda69c0e7b619267bf52288cfabcb6733ce.1636986086.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1636986274934100003 Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/qemu/qemu_agent.c | 2 +- src/qemu/qemu_monitor_json.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 8d470b090c..c3b02569cd 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -1127,7 +1127,7 @@ qemuAgentMakeCommand(const char *cmdname, va_start(args, cmdname); - if (virJSONValueObjectCreateVArgs(&jargs, args) < 0) { + if (virJSONValueObjectAddVArgs(&jargs, args) < 0) { va_end(args); return NULL; } diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 24b6c29aca..a3bdfaaf0d 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -504,7 +504,7 @@ qemuMonitorJSONTransactionAdd(virJSONValue *actions, va_start(args, cmdname); - if (virJSONValueObjectCreateVArgs(&data, args) < 0) { + if (virJSONValueObjectAddVArgs(&data, args) < 0) { va_end(args); return -1; } @@ -556,7 +556,7 @@ qemuMonitorJSONMakeCommand(const char *cmdname, va_start(args, cmdname); - if (virJSONValueObjectCreateVArgs(&jargs, args) < 0) + if (virJSONValueObjectAddVArgs(&jargs, args) < 0) goto cleanup; obj =3D qemuMonitorJSONMakeCommandInternal(cmdname, &jargs); --=20 2.31.1