[PATCH 6/7] virsh-pool.c: Fix return type of virshBuildPoolXML()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Michal Privoznik <mprivozn@xxxxxxxxxx>

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()) thread its retval as a
boolean. Switch the return type from integer to boolean.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 tools/virsh-pool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/virsh-pool.c b/tools/virsh-pool.c
index 33b130564e..089fde55e2 100644
--- a/tools/virsh-pool.c
+++ b/tools/virsh-pool.c
@@ -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,
-- 
2.49.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux