]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemublocktest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
authorPeter Krempa <pkrempa@redhat.com>
Mon, 8 Nov 2021 16:24:50 +0000 (17:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 17 Nov 2021 11:04:11 +0000 (12:04 +0100)
virJSONValueObjectAdd now works identically to virJSONValueObjectCreate
when used with a NULL argument. Replace all callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemublocktest.c

index 9d3c2fe6b0e2a2f16edf5112873311ce537d0104..6329096a683b5a8d57f0cfb3c5fa189e02373216 100644 (file)
@@ -98,7 +98,7 @@ testBackingXMLjsonXML(const void *args)
         }
     }
 
-    if (virJSONValueObjectCreate(&wrapper, "a:file", &backendprops, NULL) < 0)
+    if (virJSONValueObjectAdd(&wrapper, "a:file", &backendprops, NULL) < 0)
         return -1;
 
     if (!(propsstr = virJSONValueToString(wrapper, false)))