diff options
Diffstat (limited to 'common/list.c')
-rw-r--r-- | common/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/list.c b/common/list.c index a3a22d8f..ee268c9a 100644 --- a/common/list.c +++ b/common/list.c @@ -77,7 +77,7 @@ int list_seq_find(list_t *list, int compare(const void *item, const void *data), return -1; } -int list_find(list_t *list, void *item) { +int list_find(list_t *list, const void *item) { for (int i = 0; i < list->length; i++) { if (list->items[i] == item) { return i; |