X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-04-basichash.c;h=491c853fce27fb58b5778edc05f5d22aaa9570cb;hb=f5087965ebdb24618ca59854b7a819e21c9fdf78;hp=db895b6c6fca3c850bb927e13f9d0cc7d2b45935;hpb=bee60dd0ffe0b1b5821061b4384000c4246f2051;p=ccan diff --git a/ccan/tdb2/test/run-04-basichash.c b/ccan/tdb2/test/run-04-basichash.c index db895b6c..491c853f 100644 --- a/ccan/tdb2/test/run-04-basichash.c +++ b/ccan/tdb2/test/run-04-basichash.c @@ -3,6 +3,7 @@ #include #include #include +#include #include #include #include "logging.h" @@ -169,7 +170,7 @@ int main(int argc, char *argv[]) /* Simple delete should work. */ ok1(delete_from_hash(tdb, &h) == 0); - ok1(add_free_record(tdb, rec_zone_bits(&rec), new_off, + ok1(add_free_record(tdb, new_off, sizeof(struct tdb_used_record) + rec_key_length(&rec) + rec_data_length(&rec)