提交 8b6cdb2f 编写于 作者: J John Ferlan

nwfilter: Convert wantRemoved to bool

It is what it is anyway, so let's describe it that way too.
Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
上级 4248f4e9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册