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

Tim Wiederhake posted 10 patches 4 years, 9 months ago
[libvirt PATCH 03/10] qemuAppendKeyWrapMachineParm: Stricten parameter types
Posted by Tim Wiederhake 4 years, 9 months ago
Follow up to the last patch.

Signed-off-by: Tim Wiederhake <twiederh@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