projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1856 from rubenk/snmp-dont-dispatch-values-with-empty-type-instance
[collectd.git]
/
src
/
target_replace.c
diff --git
a/src/target_replace.c
b/src/target_replace.c
index
8d774c5
..
40a6fec
100644
(file)
--- a/
src/target_replace.c
+++ b/
src/target_replace.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "filter_chain.h"
#include "utils_subst.h"
#include "common.h"
#include "filter_chain.h"
#include "utils_subst.h"
@@
-155,7
+156,6
@@
static int tr_config_add_action (tr_action_t **dest, /* {{{ */
static int tr_action_invoke (tr_action_t *act_head, /* {{{ */
char *buffer_in, size_t buffer_in_size, int may_be_empty)
{
static int tr_action_invoke (tr_action_t *act_head, /* {{{ */
char *buffer_in, size_t buffer_in_size, int may_be_empty)
{
- tr_action_t *act;
int status;
char buffer[DATA_MAX_NAME_LEN];
regmatch_t matches[8] = { [0] = { 0 } };
int status;
char buffer[DATA_MAX_NAME_LEN];
regmatch_t matches[8] = { [0] = { 0 } };
@@
-167,7
+167,7
@@
static int tr_action_invoke (tr_action_t *act_head, /* {{{ */
DEBUG ("target_replace plugin: tr_action_invoke: <- buffer = %s;", buffer);
DEBUG ("target_replace plugin: tr_action_invoke: <- buffer = %s;", buffer);
- for (act = act_head; act != NULL; act = act->next)
+ for (
tr_action_t *
act = act_head; act != NULL; act = act->next)
{
char temp[DATA_MAX_NAME_LEN];
char *subst_status;
{
char temp[DATA_MAX_NAME_LEN];
char *subst_status;
@@
-240,7
+240,6
@@
static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
{
tr_data_t *data;
int status;
{
tr_data_t *data;
int status;
- int i;
data = calloc (1, sizeof (*data));
if (data == NULL)
data = calloc (1, sizeof (*data));
if (data == NULL)
@@
-256,7
+255,7
@@
static int tr_create (const oconfig_item_t *ci, void **user_data) /* {{{ */
data->type_instance = NULL;
status = 0;
data->type_instance = NULL;
status = 0;
- for (i = 0; i < ci->children_num; i++)
+ for (i
nt i
= 0; i < ci->children_num; i++)
{
oconfig_item_t *child = ci->children + i;
{
oconfig_item_t *child = ci->children + i;