From: Michal Privoznik Date: Wed, 14 May 2025 13:40:18 +0000 (+0200) Subject: qemu_process: Fix return type of qemuDomainHasHotpluggableStartupVcpus() X-Git-Tag: v11.4.0-rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf0944cebb8235a1f7163bd5e1756d0f6e096e5;p=thirdparty%2Flibvirt.git qemu_process: Fix return type of qemuDomainHasHotpluggableStartupVcpus() The qemuDomainHasHotpluggableStartupVcpus() function is declared to return an int but in fact its return type is a boolean. Even its only caller (qemuProcessLaunch()) treats its retval as a boolean. Switch the return type from integer to boolean. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 1af91c5909..7fe49adfb4 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -6405,7 +6405,7 @@ qemuProcessValidateHotpluggableVcpus(virDomainDef *def) } -static int +static bool qemuDomainHasHotpluggableStartupVcpus(virDomainDef *def) { size_t maxvcpus = virDomainDefGetVcpusMax(def);