From feadfeb69dcb4cef7fe784c4b5dcf7d5f9bbac17 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Mar 2016 12:54:26 +0100 Subject: [PATCH] write_tsdb plugin: constify --- src/write_tsdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 2ed43890..c562596b 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -346,7 +346,7 @@ static int wt_format_name(char *ret, int ret_len, { int status; char *temp = NULL; - char *prefix = ""; + const char *prefix = ""; const char *meta_prefix = "tsdb_prefix"; if (vl->meta) { @@ -411,9 +411,9 @@ static int wt_send_message (const char* key, const char* value, int status; size_t message_len; char *temp = NULL; - char *tags = ""; + const char *tags = ""; char message[1024]; - char *host_tags = cb->host_tags ? cb->host_tags : ""; + const char *host_tags = cb->host_tags ? cb->host_tags : ""; const char *meta_tsdb = "tsdb_tags"; /* skip if value is NaN */ -- 2.30.2