From: Michal Privoznik <mpriv...@redhat.com> 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 <mpriv...@redhat.com> --- 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