projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
threshold plugin: Fix "Dead assignment" warnings.
[collectd.git]
/
src
/
tail.c
diff --git
a/src/tail.c
b/src/tail.c
index
bcb1572
..
5b9dc53
100644
(file)
--- a/
src/tail.c
+++ b/
src/tail.c
@@
-211,7
+211,6
@@
static int ctail_config_add_file (oconfig_item_t *ci)
cu_tail_match_t *tm;
char *plugin_instance = NULL;
int num_matches = 0;
cu_tail_match_t *tm;
char *plugin_instance = NULL;
int num_matches = 0;
- int status;
int i;
if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_STRING))
int i;
if ((ci->values_num != 1) || (ci->values[0].type != OCONFIG_TYPE_STRING))
@@
-228,10
+227,10
@@
static int ctail_config_add_file (oconfig_item_t *ci)
return (-1);
}
return (-1);
}
- status = 0;
for (i = 0; i < ci->children_num; i++)
{
oconfig_item_t *option = ci->children + i;
for (i = 0; i < ci->children_num; i++)
{
oconfig_item_t *option = ci->children + i;
+ int status;
if (strcasecmp ("Match", option->key) == 0)
{
if (strcasecmp ("Match", option->key) == 0)
{