projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
treewide: declare loop variable in loop expression
[collectd.git]
/
src
/
daemon
/
utils_ignorelist.c
diff --git
a/src/daemon/utils_ignorelist.c
b/src/daemon/utils_ignorelist.c
index
311cb07
..
ff73ad7
100644
(file)
--- a/
src/daemon/utils_ignorelist.c
+++ b/
src/daemon/utils_ignorelist.c
@@
-304,8
+304,6
@@
int ignorelist_add (ignorelist_t *il, const char *entry)
*/
int ignorelist_match (ignorelist_t *il, const char *entry)
{
*/
int ignorelist_match (ignorelist_t *il, const char *entry)
{
- ignorelist_item_t *traverse;
-
/* if no entries, collect all */
if ((il == NULL) || (il->head == NULL))
return (0);
/* if no entries, collect all */
if ((il == NULL) || (il->head == NULL))
return (0);
@@
-314,7
+312,7
@@
int ignorelist_match (ignorelist_t *il, const char *entry)
return (0);
/* traverse list and check entries */
return (0);
/* traverse list and check entries */
- for (traverse = il->head; traverse != NULL; traverse = traverse->next)
+ for (
ignorelist_item_t *
traverse = il->head; traverse != NULL; traverse = traverse->next)
{
#if HAVE_REGEX_H
if (traverse->rmatch != NULL)
{
#if HAVE_REGEX_H
if (traverse->rmatch != NULL)