diff --git a/src/conf/virstorageobj.c b/src/conf/virstorageobj.c index eb7664cdd1..a9fa190c3c 100644 --- a/src/conf/virstorageobj.c +++ b/src/conf/virstorageobj.c @@ -52,7 +52,7 @@ virStoragePoolObjNew(void) return NULL; } virStoragePoolObjLock(obj); - obj->active = 0; + obj->active = false; return obj; } @@ -544,7 +544,7 @@ virStoragePoolObjLoadState(virStoragePoolObjListPtr pools, * as active */ - obj->active = 1; + obj->active = true; cleanup: VIR_FREE(stateFile); diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 6e8a4b5782..e6660e4d68 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -1130,7 +1130,7 @@ testParseStorage(testDriverPtr privconn, virStoragePoolObjUnlock(obj); goto error; } - obj->active = 1; + obj->active = true; /* Find storage volumes */ if (testOpenVolumesForPool(file, ctxt, obj, i+1) < 0) { @@ -4338,7 +4338,7 @@ testStoragePoolCreate(virStoragePoolPtr pool, if (!(obj = testStoragePoolObjFindInactiveByName(privconn, pool->name))) return -1; - obj->active = 1; + obj->active = true; event = virStoragePoolEventLifecycleNew(pool->name, pool->uuid, VIR_STORAGE_POOL_EVENT_STARTED, @@ -4486,7 +4486,7 @@ testStoragePoolCreateXML(virConnectPtr conn, * code will not Remove the pool */ VIR_FREE(obj->configFile); - obj->active = 1; + obj->active = true; event = virStoragePoolEventLifecycleNew(obj->def->name, obj->def->uuid, VIR_STORAGE_POOL_EVENT_STARTED, @@ -4634,7 +4634,7 @@ testStoragePoolDestroy(virStoragePoolPtr pool) if (!(obj = testStoragePoolObjFindActiveByName(privconn, pool->name))) return -1; - obj->active = 0; + obj->active = false; if (obj->def->source.adapter.type == VIR_STORAGE_ADAPTER_TYPE_FC_HOST) {