1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-03 01:45:00 +03:00

virsh-pool.c: Fix return type of virshBuildPoolXML()

The virshBuildPoolXML() function is declared to return an int but
in fact its return type is a boolean. Even its both callers
(cmdPoolCreateAs() and cmdPoolDefineAs()) treat its retval as a
boolean. Switch the return type from integer to boolean.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Michal Privoznik
2025-05-14 15:48:40 +02:00
parent a9adca0956
commit fe1f94a034

View File

@@ -322,7 +322,7 @@ static const vshCmdOptDef opts_pool_define_as[] = {
{.name = NULL}
};
static int
static bool
virshBuildPoolXML(vshControl *ctl,
const vshCmd *cmd,
const char **retname,