mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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;
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user