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