X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb%2Fcheck.c;h=4fbbb92c5a4ae62902d14b7ccffa697df0ccbde8;hp=fa003b79aebabd28aed807c4f9ca1d65d3014d09;hb=74257cee33ae3033f961d5f22a0313b8cb1b18d4;hpb=95bf6d3f652c031e1bf4a2ef5df187b6f34a4c01 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;