comparison th_datastruct.c @ 670:b383f4e6ab89

Use THERR_OK instead of 0.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Jan 2020 21:28:02 +0200
parents 553db886533e
children 9c61834c191b
comparison
equal deleted inserted replaced
669:7493d4c9ff77 670:b383f4e6ab89
275 th_llist_t *curr = list; 275 th_llist_t *curr = list;
276 276
277 while (curr != NULL) 277 while (curr != NULL)
278 { 278 {
279 int res = func(curr, data); 279 int res = func(curr, data);
280 if (res != 0) 280 if (res != THERR_OK)
281 { 281 {
282 *ret = curr; 282 *ret = curr;
283 return res; 283 return res;
284 } 284 }
285 curr = curr->next; 285 curr = curr->next;
286 } 286 }
287 287
288 return 0; 288 return THERR_OK;
289 } 289 }
290 290
291 291
292 th_llist_t * th_llist_find(th_llist_t *list, const void *data) 292 th_llist_t * th_llist_find(th_llist_t *list, const void *data)
293 { 293 {