projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.6'
[collectd.git]
/
src
/
daemon
/
utils_ignorelist.c
diff --git
a/src/daemon/utils_ignorelist.c
b/src/daemon/utils_ignorelist.c
index
79824a6
..
ff73ad7
100644
(file)
--- a/
src/daemon/utils_ignorelist.c
+++ b/
src/daemon/utils_ignorelist.c
@@
-235,7
+235,6
@@
void ignorelist_free (ignorelist_t *il)
}
sfree (il);
}
sfree (il);
- il = NULL;
} /* void ignorelist_destroy (ignorelist_t *il) */
/*
} /* void ignorelist_destroy (ignorelist_t *il) */
/*
@@
-305,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);
@@
-315,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)