tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-incompatible.c
index 350c78b2b4f12f881fbba41b203eea2d72408d94..13ec5d826f050f274c49ef316e3a2cde04aa4022 100644 (file)
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
                ok1(log_count == 0);
                d.dptr = (void *)"Hello";
                d.dsize = 5;
-               ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0);
+               ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS);
                tdb_close(tdb);
 
                /* Should not have marked rwlocks field. */
@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
                ok1(log_count == 0);
                d.dptr = (void *)"Hello";
                d.dsize = 5;
-               ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0);
+               ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS);
                tdb_close(tdb);
 
                /* Should have marked rwlocks field. */
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
                ok1(log_count == 0);
                d.dptr = (void *)"Hello";
                d.dsize = 5;
-               ok1(tdb1_store(tdb, d, d, TDB_INSERT) == 0);
+               ok1(tdb_store(tdb, d, d, TDB_INSERT) == TDB_SUCCESS);
                tdb_close(tdb);
 
                /* FIXME: Should have marked rwlocks field. */