projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e964f8
)
sensu: mark replace_str as static
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 1 Mar 2016 10:46:54 +0000
(11:46 +0100)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Tue, 1 Mar 2016 10:46:54 +0000
(11:46 +0100)
Commit straight to 5.5. This plugin doesn't exist in 5.4
src/write_sensu.c
patch
|
blob
|
history
diff --git
a/src/write_sensu.c
b/src/write_sensu.c
index
2cb9e10
..
e19dbc5
100644
(file)
--- a/
src/write_sensu.c
+++ b/
src/write_sensu.c
@@
-551,7
+551,7
@@
static char *sensu_value_to_json(struct sensu_host const *host, /* {{{ */
* http://creativeandcritical.net/str-replace-c/
* copyright (c) Laird Shaw, under public domain.
*/
-char *replace_str(const char *str, const char *old, /* {{{ */
+
static
char *replace_str(const char *str, const char *old, /* {{{ */
const char *new)
{
char *ret, *r;