[libvirt PATCH 03/10] qemuAppendKeyWrapMachineParm: Stricten parameter types

Tim Wiederhake twiederh at redhat.com
Wed Apr 21 15:51:26 UTC 2021


Follow up to the last patch.

Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/qemu/qemu_command.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 2ceff15512..be93182092 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -6804,7 +6804,8 @@ qemuBuildCpuCommandLine(virCommand *cmd,
 
 static bool
 qemuAppendKeyWrapMachineParm(virBuffer *buf, virQEMUCaps *qemuCaps,
-                             int flag, const char *pname, int pstate)
+                             virQEMUCapsFlags flag, const char *pname,
+                             virTristateSwitch pstate)
 {
     if (pstate != VIR_TRISTATE_SWITCH_ABSENT) {
         if (!virQEMUCapsGet(qemuCaps, flag)) {
-- 
2.26.3




More information about the libvir-list mailing list