bool values instead of int equivalent
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 21 Sep 2014 13:23:44 +0000 (15:23 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 21 Sep 2014 13:23:44 +0000 (15:23 +0200)
src/lib/psensor.c

index 8f15edf..f266631 100644 (file)
@@ -158,15 +158,15 @@ int psensor_list_size(struct psensor **sensors)
 bool psensor_list_contains_type(struct psensor **sensors, unsigned int type)
 {
        if (!sensors)
-               return 0;
+               return false;
 
        while (*sensors) {
                if ((*sensors)->type & type)
-                       return 1;
+                       return true;
                sensors++;
        }
 
-       return 0;
+       return false;
 }
 
 struct psensor **psensor_list_add(struct psensor **sensors,