X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Fcheck.c;h=4fbbb92c5a4ae62902d14b7ccffa697df0ccbde8;hp=fa003b79aebabd28aed807c4f9ca1d65d3014d09;hb=0a97f2dc1df96702dd88d4be169f43dd186c2bfa;hpb=6535bdee664f3cec63098188928fe17e951b898b diff --git a/ccan/tdb/check.c b/ccan/tdb/check.c index fa003b79..4fbbb92c 100644 --- a/ccan/tdb/check.c +++ b/ccan/tdb/check.c @@ -309,7 +309,7 @@ static bool tdb_check_free_record(struct tdb_context *tdb, } /* Slow, but should be very rare. */ -static size_t dead_space(struct tdb_context *tdb, tdb_off_t off) +size_t tdb_dead_space(struct tdb_context *tdb, tdb_off_t off) { size_t len; @@ -407,7 +407,7 @@ int tdb_check(struct tdb_context *tdb, found_recovery = true; break; } - dead = dead_space(tdb, off); + dead = tdb_dead_space(tdb, off); if (dead < sizeof(rec)) goto corrupt;