[PATCH 04/15] nwfilter: Convert wantRemoved to bool

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
---
 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 9e7d584..6e5c5b7 100644
--- a/src/conf/virnwfilterobj.c
+++ b/src/conf/virnwfilterobj.c
@@ -192,12 +192,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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux