tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-wronghash-fail.c
index 61d56d6c8a780f7ec762421c6781e9a28ebf9c08..c7e789f2ca7a02f6dec0a87fdc3632fc315ba84d 100644 (file)
@@ -60,7 +60,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);
 
        /* Fail to open with different hash. */