提交 df1a9c73 编写于 作者: J John Ferlan

logical: Fix @on argument type

It's only pass as 0 or 1 and used as a bool, let's just use a bool
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
ACKed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 b663d432
...@@ -48,7 +48,7 @@ VIR_LOG_INIT("storage.storage_backend_logical"); ...@@ -48,7 +48,7 @@ VIR_LOG_INIT("storage.storage_backend_logical");
static int static int
virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool, virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
int on) bool on)
{ {
int ret; int ret;
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool); virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
...@@ -731,7 +731,7 @@ virStorageBackendLogicalStartPool(virStoragePoolObjPtr pool) ...@@ -731,7 +731,7 @@ virStorageBackendLogicalStartPool(virStoragePoolObjPtr pool)
* that the pool's source devices match the pvs output. * that the pool's source devices match the pvs output.
*/ */
if (!virStorageBackendLogicalMatchPoolSource(pool) || if (!virStorageBackendLogicalMatchPoolSource(pool) ||
virStorageBackendLogicalSetActive(pool, 1) < 0) virStorageBackendLogicalSetActive(pool, true) < 0)
return -1; return -1;
return 0; return 0;
...@@ -858,7 +858,7 @@ virStorageBackendLogicalRefreshPool(virStoragePoolObjPtr pool) ...@@ -858,7 +858,7 @@ virStorageBackendLogicalRefreshPool(virStoragePoolObjPtr pool)
static int static int
virStorageBackendLogicalStopPool(virStoragePoolObjPtr pool) virStorageBackendLogicalStopPool(virStoragePoolObjPtr pool)
{ {
if (virStorageBackendLogicalSetActive(pool, 0) < 0) if (virStorageBackendLogicalSetActive(pool, false) < 0)
return -1; return -1;
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册