It's only pass as 0 or 1 and used as a bool, let's just use a bool
Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
static int
virStorageBackendLogicalSetActive(virStoragePoolObjPtr pool,
- int on)
+ bool on)
{
int ret;
virStoragePoolDefPtr def = virStoragePoolObjGetDef(pool);
* that the pool's source devices match the pvs output.
*/
if (!virStorageBackendLogicalMatchPoolSource(pool) ||
- virStorageBackendLogicalSetActive(pool, 1) < 0)
+ virStorageBackendLogicalSetActive(pool, true) < 0)
return -1;
return 0;
static int
virStorageBackendLogicalStopPool(virStoragePoolObjPtr pool)
{
- if (virStorageBackendLogicalSetActive(pool, 0) < 0)
+ if (virStorageBackendLogicalSetActive(pool, false) < 0)
return -1;
return 0;