Commit 18654811 18654811dff870e49a68b89ec3edc123ff0f2356 by Sergey Poznyakoff

(iterator_current,iterator_set_getitem): Changed declaration

1 parent e0f85d37
...@@ -61,7 +61,7 @@ iterator_set_next (iterator_t itr, int (*next) (void *)) ...@@ -61,7 +61,7 @@ iterator_set_next (iterator_t itr, int (*next) (void *))
61 } 61 }
62 62
63 int 63 int
64 iterator_set_getitem (iterator_t itr, int (*getitem) (void *, void **)) 64 iterator_set_getitem (iterator_t itr, int (*getitem) (void *, void * const *))
65 { 65 {
66 if (!itr) 66 if (!itr)
67 return EINVAL; 67 return EINVAL;
...@@ -173,7 +173,7 @@ iterator_next (iterator_t iterator) ...@@ -173,7 +173,7 @@ iterator_next (iterator_t iterator)
173 } 173 }
174 174
175 int 175 int
176 iterator_current (iterator_t iterator, void **pitem) 176 iterator_current (iterator_t iterator, void * const *pitem)
177 { 177 {
178 return iterator->getitem (iterator->owner, pitem); 178 return iterator->getitem (iterator->owner, pitem);
179 } 179 }
......