changeset 670:b383f4e6ab89

Use THERR_OK instead of 0.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Jan 2020 21:28:02 +0200
parents 7493d4c9ff77
children 45c2e474a997
files th_datastruct.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }