From: Denis 'jawa' Pompilio Date: Mon, 16 Oct 2017 08:15:50 +0000 (+0200) Subject: Setting metrics_prefix as char const * X-Git-Tag: collectd-5.8.0~41^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24c72b43ae909aaed636bed70b9df7400be57a0e;p=collectd.git Setting metrics_prefix as char const * --- diff --git a/src/utils_format_kairosdb.c b/src/utils_format_kairosdb.c index 63803afb..c870abb4 100644 --- a/src/utils_format_kairosdb.c +++ b/src/utils_format_kairosdb.c @@ -184,7 +184,7 @@ static int value_list_to_kairosdb(char *buffer, size_t buffer_size, /* {{{ */ int store_rates, char const *const *http_attrs, size_t http_attrs_num, int data_ttl, - char *metrics_prefix) { + char const *metrics_prefix) { char temp[512]; size_t offset = 0; int status; @@ -265,7 +265,7 @@ static int format_kairosdb_value_list_nocheck( size_t *ret_buffer_fill, size_t *ret_buffer_free, const data_set_t *ds, const value_list_t *vl, int store_rates, size_t temp_size, char const *const *http_attrs, size_t http_attrs_num, int data_ttl, - char *metrics_prefix) { + char const *metrics_prefix) { char temp[temp_size]; int status; @@ -341,7 +341,7 @@ int format_kairosdb_value_list(char *buffer, /* {{{ */ const data_set_t *ds, const value_list_t *vl, int store_rates, char const *const *http_attrs, size_t http_attrs_num, int data_ttl, - char *metrics_prefix) { + char const *metrics_prefix) { if ((buffer == NULL) || (ret_buffer_fill == NULL) || (ret_buffer_free == NULL) || (ds == NULL) || (vl == NULL)) return -EINVAL; diff --git a/src/utils_format_kairosdb.h b/src/utils_format_kairosdb.h index 487103b4..7b9e0e7a 100644 --- a/src/utils_format_kairosdb.h +++ b/src/utils_format_kairosdb.h @@ -42,7 +42,7 @@ int format_kairosdb_value_list(char *buffer, size_t *ret_buffer_fill, const value_list_t *vl, int store_rates, char const *const *http_attrs, size_t http_attrs_num, int data_ttl, - char *metrics_prefix); + char const *metrics_prefix); int format_kairosdb_finalize(char *buffer, size_t *ret_buffer_fill, size_t *ret_buffer_free);