tdb2: unify tdb1_store into tdb_store
[ccan] / ccan / tdb2 / test / run-tdb1-summary.c
index 45b4737286d1ad12cce80af9f11433ff9fe661ff..5107b8e4363616569d7b83e432bcd1e8c07892f9 100644 (file)
@@ -26,8 +26,10 @@ int main(int argc, char *argv[])
                for (j = 0; j < 500; j++) {
                        /* Make sure padding varies to we get some graphs! */
                        data.dsize = j % (sizeof(j) + 1);
-                       if (tdb1_store(tdb, key, data, TDB_REPLACE) != 0)
+                       if (tdb_store(tdb, key, data, TDB_REPLACE)
+                           != TDB_SUCCESS) {
                                fail("Storing in tdb");
+                       }
                }
 
                summary = tdb1_summary(tdb);