[PATCH 15/18] Replace virJSONValueObjectCreateVArgs with virJSONValueObjectAddVArgs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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 = qemuMonitorJSONMakeCommandInternal(cmdname, &jargs);
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux