mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: qemuMonitorJSONEjectMedia(): Fix arguments' type
QMP in QEMU 0.13 has been fixed to enforce type correctness, this means that boolean types must be true or false, not integers. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
ffefe5fb86
commit
e70880c51b
@ -1353,7 +1353,7 @@ int qemuMonitorJSONEjectMedia(qemuMonitorPtr mon,
|
|||||||
int ret;
|
int ret;
|
||||||
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("eject",
|
virJSONValuePtr cmd = qemuMonitorJSONMakeCommand("eject",
|
||||||
"s:device", devname,
|
"s:device", devname,
|
||||||
"i:force", 0,
|
"b:force", 0,
|
||||||
NULL);
|
NULL);
|
||||||
virJSONValuePtr reply = NULL;
|
virJSONValuePtr reply = NULL;
|
||||||
if (!cmd)
|
if (!cmd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user