--- a/src/cx/list.h Sat Apr 22 14:09:46 2023 +0200 +++ b/src/cx/list.h Sat Apr 22 14:21:02 2023 +0200 @@ -136,7 +136,7 @@ /** * Member function for finding an element. */ - size_t (*find)( + ssize_t (*find)( struct cx_list_s const *list, void const *elem ); @@ -569,10 +569,11 @@ * * @param list the list * @param elem the element to find - * @return the index of the element or \c size if the element is not found + * @return the index of the element or a negative + * value when the element is not found */ __attribute__((__nonnull__)) -static inline size_t cxListFind( +static inline ssize_t cxListFind( CxList const *list, void const *elem ) {