[PATCH 11/18] qemublocktest: 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>
---
 tests/qemublocktest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
index 9d3c2fe6b0..6329096a68 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -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)))
-- 
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