]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh-pool.c: Fix return type of virshBuildPoolXML()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 14 May 2025 13:48:40 +0000 (15:48 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 15 May 2025 08:49:26 +0000 (10:49 +0200)
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>
tools/virsh-pool.c

index 33b130564ea8c08c6828becf77c4a85b4b61f719..089fde55e25608855e05b7ff22c37aa5f9a89f9f 100644 (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,