Replace virJSONValueObjectCreateVArgs with virJSONValueObjectAddVArgs

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-11-09 16:31:35 +01:00
parent 813ee9fb62
commit f50cc9c108
2 changed files with 3 additions and 3 deletions

View File

@ -1127,7 +1127,7 @@ qemuAgentMakeCommand(const char *cmdname,
va_start(args, cmdname);
if (virJSONValueObjectCreateVArgs(&jargs, args) < 0) {
if (virJSONValueObjectAddVArgs(&jargs, args) < 0) {
va_end(args);
return NULL;
}

View File

@ -504,7 +504,7 @@ qemuMonitorJSONTransactionAdd(virJSONValue *actions,
va_start(args, cmdname);
if (virJSONValueObjectCreateVArgs(&data, args) < 0) {
if (virJSONValueObjectAddVArgs(&data, args) < 0) {
va_end(args);
return -1;
}
@ -556,7 +556,7 @@ qemuMonitorJSONMakeCommand(const char *cmdname,
va_start(args, cmdname);
if (virJSONValueObjectCreateVArgs(&jargs, args) < 0)
if (virJSONValueObjectAddVArgs(&jargs, args) < 0)
goto cleanup;
obj = qemuMonitorJSONMakeCommandInternal(cmdname, &jargs);