X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-missing-entries.c;h=e99572f64c120cb0bbe44375ea34a60681044bc4;hp=e197143fa4460d283e791ef386019114b3af0b71;hb=007a7e4e8df8f43c61126599bcc582750cbf17fe;hpb=5e8b9af5e7fe5f1ccac407873a3b782b8a629782 diff --git a/ccan/tdb2/test/run-missing-entries.c b/ccan/tdb2/test/run-missing-entries.c index e197143f..e99572f6 100644 --- a/ccan/tdb2/test/run-missing-entries.c +++ b/ccan/tdb2/test/run-missing-entries.c @@ -1,5 +1,6 @@ /* Another test revealed that we lost an entry. This reproduces it. */ #include +#include #include #include #include @@ -26,7 +27,7 @@ int main(int argc, char *argv[]) struct tdb_data key = { (unsigned char *)&i, sizeof(i) }; struct tdb_data data = { (unsigned char *)&i, sizeof(i) }; union tdb_attribute hattr = { .hash = { .base = { TDB_ATTRIBUTE_HASH }, - .hash_fn = failhash } }; + .fn = failhash } }; hattr.base.next = &tap_log_attr; plan_tests(1 + 2 * NUM_RECORDS + 1);