From 22ad5660800e534e18e653ed31ccaec650df8769 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Mon, 13 Mar 2023 16:52:54 +0100 Subject: Change the sign of clist_iterator_has_next We don't need the pointer passed as argument. --- src/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index 42f4056..7714f5d 100644 --- a/src/list.c +++ b/src/list.c @@ -100,7 +100,7 @@ clist_iterator(list_t *list) int clist_iterator_has_next(iterator_t i) { - return iterator->current != NULL; + return i.current != NULL; } list_item_t -- cgit v1.2.3