]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nwfilter: Convert wantRemoved to bool
authorJohn Ferlan <jferlan@redhat.com>
Tue, 18 Apr 2017 13:11:51 +0000 (09:11 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 26 Apr 2017 17:13:18 +0000 (13:13 -0400)
It is what it is anyway, so let's describe it that way too.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/virnwfilterobj.c
src/conf/virnwfilterobj.h

index 6606d3b672038c7063944484ac9d01a7d3f2462b..d7c4a1300cba8447ab41b9d43f3dc474e087aae1 100644 (file)
@@ -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;
 }
index 7a2addfcd004cb8190fb1938c8a632489526a648..f31938d1747fdf29c65e1082c638520c045e6b29 100644 (file)
@@ -29,7 +29,7 @@ typedef virNWFilterObj *virNWFilterObjPtr;
 struct _virNWFilterObj {
     virMutex lock;
 
-    int wantRemoved;
+    bool wantRemoved;
 
     virNWFilterDefPtr def;
     virNWFilterDefPtr newDef;