]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/test/run-traverse.c
tdb2: allow multiple chain locks.
[ccan] / ccan / tdb2 / test / run-traverse.c
index 36077e4acd7c4ecc316365f51059b6368eed571f..583e649dbd3a23727640a87eb368a07d8b67cf8b 100644 (file)
@@ -114,8 +114,8 @@ int main(int argc, char *argv[])
                        TDB_INTERNAL|TDB_CONVERT, TDB_CONVERT, 
                        TDB_NOMMAP|TDB_CONVERT };
        union tdb_attribute hattr = { .hash = { .base = { TDB_ATTRIBUTE_HASH },
-                                               .hash_fn = fixedhash,
-                                               .hash_private = &seed } };
+                                               .fn = fixedhash,
+                                               .data = &seed } };
 
        hattr.base.next = &tap_log_attr;