X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-seed.c;h=09193964a77bddf1e754d83ab87a8b4f4f1a9ca9;hp=09ed1cb31c39207e14adaa64fe132e53f4e4f513;hb=56023cca5f66a40646a1e807c3d10af6e5913623;hpb=efdf0f2d8f34b4c01c82c558b350ec36c7329b1e diff --git a/ccan/tdb2/test/run-seed.c b/ccan/tdb2/test/run-seed.c index 09ed1cb3..09193964 100644 --- a/ccan/tdb2/test/run-seed.c +++ b/ccan/tdb2/test/run-seed.c @@ -1,11 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" @@ -13,15 +6,16 @@ static int log_count = 0; /* Normally we get a log when setting random seed. */ static void my_log_fn(struct tdb_context *tdb, - enum tdb_log_level level, void *priv, - const char *message) + enum tdb_log_level level, + enum TDB_ERROR ecode, + const char *message, void *priv) { log_count++; } static union tdb_attribute log_attr = { .log = { .base = { .attr = TDB_ATTRIBUTE_LOG }, - .log_fn = my_log_fn } + .fn = my_log_fn } }; int main(int argc, char *argv[])