# HG changeset patch # User Matti Hamalainen # Date 1580239682 -7200 # Node ID b383f4e6ab897d02292a04608c751deb592e60db # Parent 7493d4c9ff77f508bf6e1736195123bd26096bc6 Use THERR_OK instead of 0. diff -r 7493d4c9ff77 -r b383f4e6ab89 th_datastruct.c --- a/th_datastruct.c Tue Jan 28 20:10:16 2020 +0200 +++ b/th_datastruct.c Tue Jan 28 21:28:02 2020 +0200 @@ -277,7 +277,7 @@ while (curr != NULL) { int res = func(curr, data); - if (res != 0) + if (res != THERR_OK) { *ret = curr; return res; @@ -285,7 +285,7 @@ curr = curr->next; } - return 0; + return THERR_OK; }