diff -r 9138acaa494b -r af6be1e123aa src/cx/linked_list.h --- a/src/cx/linked_list.h Tue Dec 28 17:24:18 2021 +0100 +++ b/src/cx/linked_list.h Tue Dec 28 17:38:02 2021 +0100 @@ -90,7 +90,7 @@ CxListComparator comparator, size_t item_size, size_t num_items, - const void *array + void const *array ) __attribute__((__nonnull__)); /** @@ -139,12 +139,12 @@ * @return the index of the element or a past-one index if the element could not be found */ size_t cx_linked_list_find( - void *start, + void const *start, ptrdiff_t loc_advance, ptrdiff_t loc_data, bool follow_ptr, CxListComparator cmp_func, - void *elem + void const *elem ) __attribute__((__nonnull__)); /** @@ -355,7 +355,7 @@ * @return the size of the list or zero if \p node is \c NULL */ size_t cx_linked_list_size( - void *node, + void const *node, ptrdiff_t loc_next ); @@ -416,8 +416,8 @@ * @return */ int cx_linked_list_compare( - void *begin_left, - void *begin_right, + void const *begin_left, + void const *begin_right, ptrdiff_t loc_advance, ptrdiff_t loc_data, bool follow_ptr,