提交 e70880c5 编写于 作者: L Luiz Capitulino 提交者: Eric Blake

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: NLuiz Capitulino <lcapitulino@redhat.com>
上级 ffefe5fb
...@@ -1353,7 +1353,7 @@ int qemuMonitorJSONEjectMedia(qemuMonitorPtr mon, ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册