projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: use bool instead of _Bool
[collectd.git]
/
src
/
tail_csv.c
diff --git
a/src/tail_csv.c
b/src/tail_csv.c
index
2e3ac5f
..
9331142
100644
(file)
--- a/
src/tail_csv.c
+++ b/
src/tail_csv.c
@@
-120,7
+120,7
@@
static int tcsv_read_metric(instance_definition_t *id, metric_definition_t *md,
return tcsv_submit(id, md, v, t);
}
return tcsv_submit(id, md, v, t);
}
-static
_B
ool tcsv_check_index(ssize_t index, size_t fields_num,
+static
b
ool tcsv_check_index(ssize_t index, size_t fields_num,
char const *name) {
if (index < 0)
return 1;
char const *name) {
if (index < 0)
return 1;
@@
-128,7
+128,7
@@
static _Bool tcsv_check_index(ssize_t index, size_t fields_num,
return 1;
ERROR("tail_csv plugin: Metric \"%s\": Request for index %zd when "
return 1;
ERROR("tail_csv plugin: Metric \"%s\": Request for index %zd when "
- "only %
zu
fields are available.",
+ "only %
" PRIsz "
fields are available.",
name, index, fields_num);
return 0;
}
name, index, fields_num);
return 0;
}
@@
-513,7
+513,7
@@
static int tcsv_config(oconfig_item_t *ci) {
} /* int tcsv_config */
static int tcsv_init(void) { /* {{{ */
} /* int tcsv_config */
static int tcsv_init(void) { /* {{{ */
- static
_B
ool have_init = 0;
+ static
b
ool have_init = 0;
metric_definition_t *md;
if (have_init)
metric_definition_t *md;
if (have_init)
@@
-532,7
+532,7
@@
static int tcsv_init(void) { /* {{{ */
md->type, md->name);
continue;
} else if (ds->ds_num != 1) {
md->type, md->name);
continue;
} else if (ds->ds_num != 1) {
- ERROR("tail_csv plugin: The type \"%s\" has %
zu
data sources. "
+ ERROR("tail_csv plugin: The type \"%s\" has %
" PRIsz "
data sources. "
"Only types with a single data source are supported.",
ds->type, ds->ds_num);
continue;
"Only types with a single data source are supported.",
ds->type, ds->ds_num);
continue;