From: Ruben Kerkhof Date: Sat, 5 Mar 2016 11:54:26 +0000 (+0100) Subject: write_tsdb plugin: constify X-Git-Tag: collectd-5.6.0~432 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=feadfeb69dcb4cef7fe784c4b5dcf7d5f9bbac17;p=collectd.git write_tsdb plugin: constify --- 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 */