提交 607524af 编写于 作者: J John Ferlan

conf: Use bool for @check_active parameter

Use a bool as that's how the variable is used in the function.
上级 c00643f8
...@@ -1133,7 +1133,7 @@ virStoragePoolObjGetNames(virStoragePoolObjListPtr pools, ...@@ -1133,7 +1133,7 @@ virStoragePoolObjGetNames(virStoragePoolObjListPtr pools,
int int
virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools, virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
virStoragePoolDefPtr def, virStoragePoolDefPtr def,
unsigned int check_active) bool check_active)
{ {
int ret = -1; int ret = -1;
virStoragePoolObjPtr obj = NULL; virStoragePoolObjPtr obj = NULL;
......
...@@ -247,7 +247,7 @@ virStoragePoolObjRemove(virStoragePoolObjListPtr pools, ...@@ -247,7 +247,7 @@ virStoragePoolObjRemove(virStoragePoolObjListPtr pools,
int int
virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools, virStoragePoolObjIsDuplicate(virStoragePoolObjListPtr pools,
virStoragePoolDefPtr def, virStoragePoolDefPtr def,
unsigned int check_active); bool check_active);
int int
virStoragePoolObjSourceFindDuplicate(virConnectPtr conn, virStoragePoolObjSourceFindDuplicate(virConnectPtr conn,
......
...@@ -656,7 +656,7 @@ storagePoolCreateXML(virConnectPtr conn, ...@@ -656,7 +656,7 @@ storagePoolCreateXML(virConnectPtr conn,
if (virStoragePoolCreateXMLEnsureACL(conn, newDef) < 0) if (virStoragePoolCreateXMLEnsureACL(conn, newDef) < 0)
goto cleanup; goto cleanup;
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, 1) < 0) if (virStoragePoolObjIsDuplicate(driver->pools, newDef, true) < 0)
goto cleanup; goto cleanup;
if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0) if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0)
...@@ -751,7 +751,7 @@ storagePoolDefineXML(virConnectPtr conn, ...@@ -751,7 +751,7 @@ storagePoolDefineXML(virConnectPtr conn,
if (virStoragePoolDefineXMLEnsureACL(conn, newDef) < 0) if (virStoragePoolDefineXMLEnsureACL(conn, newDef) < 0)
goto cleanup; goto cleanup;
if (virStoragePoolObjIsDuplicate(driver->pools, newDef, 0) < 0) if (virStoragePoolObjIsDuplicate(driver->pools, newDef, false) < 0)
goto cleanup; goto cleanup;
if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0) if (virStoragePoolObjSourceFindDuplicate(conn, driver->pools, newDef) < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册