From: Peter Krempa Date: Tue, 30 Nov 2021 15:08:29 +0000 (+0100) Subject: qemuMonitorJSONEjectMedia: Use a bool directly for constructing JSON with 'b' modifier X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bd5309fd580443d307e82d658ee3af501999adb4;p=libvirt.git qemuMonitorJSONEjectMedia: Use a bool directly for constructing JSON with 'b' modifier It actually already expects a bool. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index b45aae9d96..652f6b31ab 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -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;