/* Drop the pool lock during volume allocation */
pool->asyncjobs++;
- voldef->building = 1;
+ voldef->building = true;
virStoragePoolObjUnlock(pool);
buildret = backend->buildVol(obj->conn, pool, buildvoldef, flags);
virStoragePoolObjLock(pool);
storageDriverUnlock(driver);
- voldef->building = 0;
+ voldef->building = false;
pool->asyncjobs--;
if (buildret < 0) {
/* Drop the pool lock during volume allocation */
pool->asyncjobs++;
- newvol->building = 1;
+ newvol->building = true;
origvol->in_use++;
virStoragePoolObjUnlock(pool);
storageDriverUnlock(driver);
origvol->in_use--;
- newvol->building = 0;
+ newvol->building = false;
allocation = newvol->target.allocation;
pool->asyncjobs--;