diff options
author | 2023-03-13 16:52:54 +0100 | |
---|---|---|
committer | 2023-03-13 16:52:54 +0100 | |
commit | 22ad5660800e534e18e653ed31ccaec650df8769 (patch) | |
tree | 2dbb11ad03b01d8586ef5a2664c0bd73f1767bc8 | |
parent | ac5e3e46c36ef45a3ce84e59a15e8e909129e519 (diff) | |
download | utils-22ad5660800e534e18e653ed31ccaec650df8769.tar.gz utils-22ad5660800e534e18e653ed31ccaec650df8769.zip |
Change the sign of clist_iterator_has_next
We don't need the pointer passed as argument.
-rw-r--r-- | src/list.c | 2 | ||||
-rw-r--r-- | src/list.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 @@ -40,7 +40,7 @@ void clist_add (list_t *, void *); void clist_add_all (list_t *, list_t *); void clist_remove (list_t *, list_item_t *); iterator_t clist_iterator (list_t *); -int clist_iterator_has_next(iterator_t *); +int clist_iterator_has_next(iterator_t); list_item_t *clist_iterator_next (iterator_t *); char* clist_version (void); |