X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-missing-entries.c;h=e99572f64c120cb0bbe44375ea34a60681044bc4;hb=156e5eb92f1d986957cb081b58320579c6e366dd;hp=2811b7556e7f2b0983c9b5d04e38a79e164036e9;hpb=ee6f11b307599200a574208372bc962eff81a9b1;p=ccan diff --git a/ccan/tdb2/test/run-missing-entries.c b/ccan/tdb2/test/run-missing-entries.c index 2811b755..e99572f6 100644 --- a/ccan/tdb2/test/run-missing-entries.c +++ b/ccan/tdb2/test/run-missing-entries.c @@ -1,10 +1,13 @@ /* Another test revealed that we lost an entry. This reproduces it. */ #include +#include #include #include #include +#include #include #include +#include #include #include "logging.h" @@ -24,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);