Use true and false for assignments to bool
[collectd.git] / src / tail_csv.c
index 58e101f..ff96705 100644 (file)
@@ -123,14 +123,14 @@ static int tcsv_read_metric(instance_definition_t *id, metric_definition_t *md,
 static bool tcsv_check_index(ssize_t index, size_t fields_num,
                              char const *name) {
   if (index < 0)
-    return 1;
+    return true;
   else if (((size_t)index) < fields_num)
-    return 1;
+    return true;
 
   ERROR("tail_csv plugin: Metric \"%s\": Request for index %zd when "
         "only %" PRIsz " fields are available.",
         name, index, fields_num);
-  return 0;
+  return false;
 }
 
 static int tcsv_read_buffer(instance_definition_t *id, char *buffer,