X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-missing-entries.c;h=22d6ba4270af6b22277fc8aa2356b82039c19f41;hb=b929638e3cfe629285af3ecd0813e03eaeaa1133;hp=bd5127dda2565d3a792540dec8fd841a2a411eb2;hpb=6804501c350181dea8f531142b28c620b70edbd9;p=ccan diff --git a/ccan/tdb2/test/run-missing-entries.c b/ccan/tdb2/test/run-missing-entries.c index bd5127dd..22d6ba42 100644 --- a/ccan/tdb2/test/run-missing-entries.c +++ b/ccan/tdb2/test/run-missing-entries.c @@ -1,11 +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 #include "logging.h" @@ -25,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);