mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
conf: Use bool for @check_active parameter
Use a bool as that's how the variable is used in the function.
This commit is contained in:
parent
c00643f86f
commit
607524af4f
@ -1133,7 +1133,7 @@ virStoragePoolObjGetNames(virStoragePoolObjListPtr pools,
|
||||
int
|
||||
virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
|
||||
virStoragePoolDefPtr def,
|
||||
unsigned int check_active)
|
||||
bool check_active)
|
||||
{
|
||||
int ret = -1;
|
||||
virStoragePoolObjPtr obj = NULL;
|
||||
|
@ -247,7 +247,7 @@ virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
|
||||
int
|
||||
virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
|
||||
virStoragePoolDefPtr def,
|
||||
unsigned int check_active);
|
||||
bool check_active);
|
||||
|
||||
int
|
||||
virStoragePoolObjSourceFindDuplicate(virConnectPtr conn,
|
||||
|
@ -656,7 +656,7 @@ storagePoolCreateXML(virConnectPtr conn,
|
||||
if (virStoragePoolCreateXMLEnsureACL(conn, newDef) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, 1) < 0)
|
||||
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, true) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0)
|
||||
@ -751,7 +751,7 @@ storagePoolDefineXML(virConnectPtr conn,
|
||||
if (virStoragePoolDefineXMLEnsureACL(conn, newDef) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, 0) < 0)
|
||||
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, false) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user