X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-add-remove-flags.c;h=bc778499b6d399e7d92998a0946f3b847025c224;hb=a391b2b900bc6d5c0467869a454bdb5c51b5a3be;hp=23a11cdcc2c5a168ff35dceefa201656e325c2e8;hpb=efdf0f2d8f34b4c01c82c558b350ec36c7329b1e;p=ccan diff --git a/ccan/tdb2/test/run-add-remove-flags.c b/ccan/tdb2/test/run-add-remove-flags.c index 23a11cdc..bc778499 100644 --- a/ccan/tdb2/test/run-add-remove-flags.c +++ b/ccan/tdb2/test/run-add-remove-flags.c @@ -1,12 +1,4 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "tdb2-source.h" #include #include "logging.h" @@ -43,7 +35,7 @@ int main(int argc, char *argv[]) else { ok1(tap_log_messages == 0); ok1(tdb_get_flags(tdb) & TDB_NOMMAP); - ok1(tdb->map_ptr == NULL); + ok1(tdb->file->map_ptr == NULL); } tap_log_messages = 0; @@ -73,7 +65,7 @@ int main(int argc, char *argv[]) else { ok1(tap_log_messages == 0); ok1(!(tdb_get_flags(tdb) & TDB_NOMMAP)); - ok1(tdb->map_ptr != NULL); + ok1(tdb->file->map_ptr != NULL); } tap_log_messages = 0;