From: Peter Krempa Date: Mon, 8 Nov 2021 16:24:50 +0000 (+0100) Subject: virsh: domain: Replace virJSONValueObjectCreate by virJSONValueObjectAdd X-Git-Tag: v7.10.0-rc1~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=813ee9fb62f0ea8c6ca03950a7e930f5cef7a550;p=thirdparty%2Flibvirt.git virsh: domain: 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/tools/virsh-domain.c b/tools/virsh-domain.c index 22f428f702..e9b49307db 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -9623,10 +9623,10 @@ cmdQemuMonitorCommandQMPWrap(vshControl *ctl, } } - if (virJSONValueObjectCreate(&command, - "s:execute", commandname, - "A:arguments", &arguments, - NULL) < 0) + if (virJSONValueObjectAdd(&command, + "s:execute", commandname, + "A:arguments", &arguments, + NULL) < 0) return NULL; return virJSONValueToString(command, false);