diff options
Diffstat (limited to 'src/core/misc.c')
-rw-r--r-- | src/core/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/misc.c b/src/core/misc.c index c9abeb07..2f7d8049 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -196,12 +196,12 @@ GSList *gslist_find_icase_string(GSList *list, const char *key) return NULL; } -void *gslist_foreach_find(GSList *list, FOREACH_FIND_FUNC func, void *data) +void *gslist_foreach_find(GSList *list, FOREACH_FIND_FUNC func, const void *data) { void *ret; while (list != NULL) { - ret = func(list->data, data); + ret = func(list->data, (void *) data); if (ret != NULL) return ret; list = list->next; |