X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_format_graphite.c;h=0bc802b62d0096f6d2502d9fe7db65e96408f78f;hb=b9b5e5d573d0011c4f3276e9b84b73ba4dd2e870;hp=6fd0226486ef32afa3be39ec760ee60e2f8d3a9a;hpb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;p=collectd.git diff --git a/src/utils_format_graphite.c b/src/utils_format_graphite.c index 6fd02264..0bc802b6 100644 --- a/src/utils_format_graphite.c +++ b/src/utils_format_graphite.c @@ -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);