projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
snmp_agent: Try to fix tests
[collectd.git]
/
src
/
utils_format_graphite.c
diff --git
a/src/utils_format_graphite.c
b/src/utils_format_graphite.c
index
fbeff4f
..
0bc802b
100644
(file)
--- a/
src/utils_format_graphite.c
+++ b/
src/utils_format_graphite.c
@@
-77,7
+77,7
@@
static int gr_format_values(char *ret, size_t ret_len, int ds_num,
}
static void gr_copy_escape_part(char *dst, const char *src, size_t dst_len,
}
static void gr_copy_escape_part(char *dst, const char *src, size_t dst_len,
- char escape_char,
_B
ool preserve_separator) {
+ char escape_char,
b
ool preserve_separator) {
memset(dst, 0, dst_len);
if (src == NULL)
memset(dst, 0, dst_len);
if (src == NULL)
@@
-116,7
+116,7
@@
static int gr_format_name(char *ret, int ret_len, value_list_t const *vl,
if (postfix == NULL)
postfix = "";
if (postfix == NULL)
postfix = "";
-
_Bool preserve_separator = (flags & GRAPHITE_PRESERVE_SEPARATOR) ? 1 : 0
;
+
bool preserve_separator = (flags & GRAPHITE_PRESERVE_SEPARATOR)
;
gr_copy_escape_part(n_host, vl->host, sizeof(n_host), escape_char,
preserve_separator);
gr_copy_escape_part(n_host, vl->host, sizeof(n_host), escape_char,
preserve_separator);