From: Peter Krempa Date: Mon, 8 Nov 2021 16:24:50 +0000 (+0100) Subject: qemublocktest: Replace virJSONValueObjectCreate by virJSONValueObjectAdd X-Git-Tag: v7.10.0-rc1~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=804904172065fd36e161a0f411a337c903e9af97;p=thirdparty%2Flibvirt.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 Reviewed-by: Ján Tomko --- 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)))