From fe1f94a034bcf16d7a50d0bde01e4a63362c95fe Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Wed, 14 May 2025 15:48:40 +0200 Subject: [PATCH] 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 Reviewed-by: Peter Krempa --- 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.47.3