X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_format_graphite.c;h=0bc802b62d0096f6d2502d9fe7db65e96408f78f;hb=6e41c3b1f024d7944e5e8010a87933555c662474;hp=fbeff4f062d97ae2811c7c025d8e8b32ed6e2031;hpb=5a32acd88719481cc22aaecd36f3cbc11f3a3489;p=collectd.git diff --git a/src/utils_format_graphite.c b/src/utils_format_graphite.c index fbeff4f0..0bc802b6 100644 --- 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, - char escape_char, _Bool preserve_separator) { + char escape_char, bool preserve_separator) { 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 = ""; - _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);