[PATCH 13/18] qemu: migration_params: Replace virJSONValueObjectCreate by virJSONValueObjectAdd

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

 



virJSONValueObjectAdd now works identically to virJSONValueObjectCreate
when used with a NULL argument. Replace all callers.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_migration_params.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c
index b6c582aaca..8df7aac93a 100644
--- a/src/qemu/qemu_migration_params.c
+++ b/src/qemu/qemu_migration_params.c
@@ -790,10 +790,10 @@ qemuMigrationCapsToJSON(virBitmap *caps,
         if (!virBitmapIsBitSet(caps, bit))
             continue;

-        if (virJSONValueObjectCreate(&cap,
-                                     "s:capability", qemuMigrationCapabilityTypeToString(bit),
-                                     "b:state", virBitmapIsBitSet(states, bit),
-                                     NULL) < 0)
+        if (virJSONValueObjectAdd(&cap,
+                                  "s:capability", qemuMigrationCapabilityTypeToString(bit),
+                                  "b:state", virBitmapIsBitSet(states, bit),
+                                  NULL) < 0)
             return NULL;

         if (virJSONValueArrayAppend(json, &cap) < 0)
-- 
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