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:
John Ferlan 2017-12-18 07:47:30 -05:00
parent c00643f86f
commit 607524af4f
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -247,7 +247,7 @@ virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
int
virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
virStoragePoolDefPtr def,
unsigned int check_active);
bool check_active);
int
virStoragePoolObjSourceFindDuplicate(virConnectPtr conn,

View File

@ -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)