diff -r efbd59642577 -r 49a284f61e8c ucx/cx/linked_list.h --- a/ucx/cx/linked_list.h Fri Apr 21 21:25:32 2023 +0200 +++ b/ucx/cx/linked_list.h Sun May 07 11:53:10 2023 +0200 @@ -118,9 +118,9 @@ * @param loc_data the location of the \c data pointer within your node struct * @param cmp_func a compare function to compare \p elem against the node data * @param elem a pointer to the element to find - * @return the index of the element or a past-one index if the element could not be found + * @return the index of the element or a negative value if it could not be found */ -size_t cx_linked_list_find( +ssize_t cx_linked_list_find( void const *start, ptrdiff_t loc_advance, ptrdiff_t loc_data,