From: Peter Krempa Date: Mon, 8 Nov 2021 16:24:50 +0000 (+0100) Subject: qemu: agent: Replace virJSONValueObjectCreate by virJSONValueObjectAdd X-Git-Tag: v7.10.0-rc1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de1edd5c79e09a53e110954952d6bc32128ee2c;p=thirdparty%2Flibvirt.git qemu: agent: 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/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index e6d9e7ac50..8d470b090c 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -1134,10 +1134,10 @@ qemuAgentMakeCommand(const char *cmdname, va_end(args); - if (virJSONValueObjectCreate(&obj, - "s:execute", cmdname, - "A:arguments", &jargs, - NULL) < 0) + if (virJSONValueObjectAdd(&obj, + "s:execute", cmdname, + "A:arguments", &jargs, + NULL) < 0) return NULL; return g_steal_pointer(&obj);