nwfilter: Convert wantRemoved to bool

It is what it is anyway, so let's describe it that way too.

Signed-off-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
John Ferlan 2017-04-18 09:11:51 -04:00
parent 4248f4e9d4
commit 8b6cdb2faa
2 changed files with 3 additions and 3 deletions

View File

@ -185,12 +185,12 @@ virNWFilterObjTestUnassignDef(virNWFilterObjPtr obj)
{
int rc = 0;
obj->wantRemoved = 1;
obj->wantRemoved = true;
/* trigger the update on VMs referencing the filter */
if (virNWFilterTriggerVMFilterRebuild())
rc = -1;
obj->wantRemoved = 0;
obj->wantRemoved = false;
return rc;
}

View File

@ -29,7 +29,7 @@ typedef virNWFilterObj *virNWFilterObjPtr;
struct _virNWFilterObj {
virMutex lock;
int wantRemoved;
bool wantRemoved;
virNWFilterDefPtr def;
virNWFilterDefPtr newDef;