mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
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:
parent
813ee9fb62
commit
f50cc9c108
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user