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; int rc = 0;
obj->wantRemoved = 1; obj->wantRemoved = true;
/* trigger the update on VMs referencing the filter */ /* trigger the update on VMs referencing the filter */
if (virNWFilterTriggerVMFilterRebuild()) if (virNWFilterTriggerVMFilterRebuild())
rc = -1; rc = -1;
obj->wantRemoved = 0; obj->wantRemoved = false;
return rc; return rc;
} }

View File

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