]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemuAppendKeyWrapMachineParm: Stricten parameter types
authorTim Wiederhake <twiederh@redhat.com>
Wed, 21 Apr 2021 15:51:26 +0000 (17:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Apr 2021 09:24:53 +0000 (11:24 +0200)
Follow up to the last patch.

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c

index 2ceff155124ef6b8cf5ecaea367982563286b7ff..be93182092813f4bba089b59392b6fa8f804bd84 100644 (file)
@@ -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)) {