projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1562a17
)
write_tsdb plugin: constify
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 11:54:26 +0000
(12:54 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 11:54:26 +0000
(12:54 +0100)
src/write_tsdb.c
patch
|
blob
|
history
diff --git
a/src/write_tsdb.c
b/src/write_tsdb.c
index
2ed4389
..
c562596
100644
(file)
--- 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 = "";
+ c
onst c
har *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 = "";
+ c
onst c
har *tags = "";
char message[1024];
- char *host_tags = cb->host_tags ? cb->host_tags : "";
+ c
onst c
har *host_tags = cb->host_tags ? cb->host_tags : "";
const char *meta_tsdb = "tsdb_tags";
/* skip if value is NaN */