mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
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:
parent
4248f4e9d4
commit
8b6cdb2faa
@ -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;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ typedef virNWFilterObj *virNWFilterObjPtr;
|
||||
struct _virNWFilterObj {
|
||||
virMutex lock;
|
||||
|
||||
int wantRemoved;
|
||||
bool wantRemoved;
|
||||
|
||||
virNWFilterDefPtr def;
|
||||
virNWFilterDefPtr newDef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user