mirror of https://gitee.com/openkylin/libvirt.git
qemuMonitorJSONEjectMedia: Use a bool directly for constructing JSON with 'b' modifier
It actually already expects a bool. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
a8aa6a5107
commit
bd5309fd58
|
@ -2970,7 +2970,7 @@ int qemuMonitorJSONEjectMedia(qemuMonitor *mon,
|
|||
{
|
||||
g_autoptr(virJSONValue) cmd = qemuMonitorJSONMakeCommand("eject",
|
||||
"s:device", dev_name,
|
||||
"b:force", force ? 1 : 0,
|
||||
"b:force", force,
|
||||
NULL);
|
||||
g_autoptr(virJSONValue) reply = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue