Code

sensu: mark replace_str as static
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 1 Mar 2016 10:46:54 +0000 (11:46 +0100)
committerRuben 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

index 2cb9e10d5d5b4e2c26db817401ee637cc2c90a87..e19dbc50039328f2a56946c0210045bab2e949fc 100644 (file)
@@ -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;