Wean off TDB_ERRCODE.
[ccan] / ccan / tdb / traverse.c
index d8b15aff4aa39f22f76fd6080e8e251404be4d75..4b3a316229c2059ef1977b9466b2d5d5fe34473d 100644 (file)
@@ -121,7 +121,8 @@ static int tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock *tloc
                want_next = 0;
        }
        /* We finished iteration without finding anything */
-       return TDB_ERRCODE(TDB_SUCCESS, 0);
+       tdb->ecode = TDB_SUCCESS;
+       return 0;
 
  fail:
        tlock->off = 0;