[libvirt] [PATCH v2 04/13] nwfilter: Convert wantRemoved to bool

John Ferlan jferlan at redhat.com
Tue Apr 25 19:30:24 UTC 2017


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

Signed-off-by: John Ferlan <jferlan at redhat.com>
---
 src/conf/virnwfilterobj.c | 4 ++--
 src/conf/virnwfilterobj.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf/virnwfilterobj.c b/src/conf/virnwfilterobj.c
index 6606d3b..d7c4a13 100644
--- a/src/conf/virnwfilterobj.c
+++ b/src/conf/virnwfilterobj.c
@@ -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;
 }
diff --git a/src/conf/virnwfilterobj.h b/src/conf/virnwfilterobj.h
index 7a2addf..f31938d 100644
--- a/src/conf/virnwfilterobj.h
+++ b/src/conf/virnwfilterobj.h
@@ -29,7 +29,7 @@ typedef virNWFilterObj *virNWFilterObjPtr;
 struct _virNWFilterObj {
     virMutex lock;
 
-    int wantRemoved;
+    bool wantRemoved;
 
     virNWFilterDefPtr def;
     virNWFilterDefPtr newDef;
-- 
2.9.3




More information about the libvir-list mailing list