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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user