From bd5309fd580443d307e82d658ee3af501999adb4 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 30 Nov 2021 16:08:29 +0100 Subject: [PATCH] qemuMonitorJSONEjectMedia: Use a bool directly for constructing JSON with 'b' modifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It actually already expects a bool. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/qemu/qemu_monitor_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;