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