Code

Setting metrics_prefix as char const *
authorDenis 'jawa' Pompilio <denis.pompilio@nbs-system.com>
Mon, 16 Oct 2017 08:15:50 +0000 (10:15 +0200)
committerDenis 'jawa' Pompilio <denis.pompilio@nbs-system.com>
Mon, 16 Oct 2017 10:26:03 +0000 (12:26 +0200)
src/utils_format_kairosdb.c
src/utils_format_kairosdb.h

index 63803afbb49766561b1a16193fbac0c444e2cf6e..c870abb4f6ca7b84f011b575b447fb792a48a3ea 100644 (file)
@@ -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;
index 487103b4ffe34475e93ab6bd20e02bf0e36afd88..7b9e0e7ac7154cde3798ed5e06aa16d1ffd5b09c 100644 (file)
@@ -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);