mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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",
|
g_autoptr(virJSONValue) cmd = qemuMonitorJSONMakeCommand("eject",
|
||||||
"s:device", dev_name,
|
"s:device", dev_name,
|
||||||
"b:force", force ? 1 : 0,
|
"b:force", force,
|
||||||
NULL);
|
NULL);
|
||||||
g_autoptr(virJSONValue) reply = NULL;
|
g_autoptr(virJSONValue) reply = NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user