]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-tdb1-nested-transactions.c
tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-nested-transactions.c
index 63fa1de79f284caeb4b4fc78f3a5ed4e02201377..6a10b46b1b64886d5a1b4ff2f122d9112d022a16 100644 (file)
@@ -27,7 +27,7 @@ int main(int argc, char *argv[])
        ok1(tdb1_transaction_start(tdb) == 0);
        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);
        data = tdb1_fetch(tdb, key);
        ok1(data.dsize == strlen("world"));
        ok1(memcmp(data.dptr, "world", strlen("world")) == 0);