tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-open-during-transaction.c
index fd3a48086cd3ede713c8c7b10a8b371342c27974..879d79064716a1f8c442af01fb9c141707996510 100644 (file)
@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
                data.dptr = (void *)"world";
                data.dsize = strlen("world");
 
-               ok1(tdb1_store(tdb, key, data, TDB_INSERT) == 0);
+               ok1(tdb_store(tdb, key, data, TDB_INSERT) == TDB_SUCCESS);
                ok1(tdb1_transaction_commit(tdb) == 0);
                ok(!errors, "We had %u open errors", errors);