tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-check.c
index 8a0532c4be51870baf07cb549d165d57fd76e970..d2360f02fdc276c61531f9dae2aa264ce6b2bb0e 100644 (file)
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
        data.dsize = strlen("world");
        data.dptr = (void *)"world";
 
-       ok1(tdb1_store(tdb, key, data, TDB_INSERT) == 0);
+       ok1(tdb_store(tdb, key, data, TDB_INSERT) == TDB_SUCCESS);
        ok1(tdb1_check(tdb, NULL, NULL) == 0);
        tdb_close(tdb);