mirror of https://gitee.com/openkylin/libvirt.git
qemublocktest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd
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>
This commit is contained in:
parent
acf6b4e83c
commit
8049041720
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue