ucx/list.c

changeset 748
49a284f61e8c
parent 747
efbd59642577
child 750
4d7a2238c5ac
equal deleted inserted replaced
747:efbd59642577 748:49a284f61e8c
113 ) { 113 ) {
114 void **ptr = list->climpl->at(list, index); 114 void **ptr = list->climpl->at(list, index);
115 return ptr == NULL ? NULL : *ptr; 115 return ptr == NULL ? NULL : *ptr;
116 } 116 }
117 117
118 static size_t cx_pl_find( 118 static ssize_t cx_pl_find(
119 struct cx_list_s const *list, 119 struct cx_list_s const *list,
120 void const *elem 120 void const *elem
121 ) { 121 ) {
122 cx_pl_hack_cmpfunc(list); 122 cx_pl_hack_cmpfunc(list);
123 size_t ret = list->climpl->find(list, &elem); 123 ssize_t ret = list->climpl->find(list, &elem);
124 cx_pl_unhack_cmpfunc(list); 124 cx_pl_unhack_cmpfunc(list);
125 return ret; 125 return ret;
126 } 126 }
127 127
128 static void cx_pl_sort(struct cx_list_s *list) { 128 static void cx_pl_sort(struct cx_list_s *list) {

mercurial