X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Fcheck.c;h=0a347715e35e03d5d5e67f551641f6c532b3c706;hb=03d4aa56b8bd381db449b36befa6928594cea994;hp=0f0094f009bb76cc0fde89e5f555a646bd8cbf80;hpb=dea5ab34a93218e9b7c6eb7d03ca89cfdc0a4634;p=ccan diff --git a/ccan/tdb/check.c b/ccan/tdb/check.c index 0f0094f0..0a347715 100644 --- a/ccan/tdb/check.c +++ b/ccan/tdb/check.c @@ -64,7 +64,7 @@ corrupt: /* Generic record header check. */ static bool tdb_check_record(struct tdb_context *tdb, tdb_off_t off, - const struct list_struct *rec) + const struct tdb_record *rec) { tdb_off_t tailer; @@ -229,7 +229,7 @@ static void record_offset(unsigned char bits[], tdb_off_t off) /* Check that an in-use record is valid. */ static bool tdb_check_used_record(struct tdb_context *tdb, tdb_off_t off, - const struct list_struct *rec, + const struct tdb_record *rec, unsigned char **hashes, int (*check)(TDB_DATA, TDB_DATA, void *), void *private) @@ -288,7 +288,7 @@ fail_put_key: /* Check that an unused record is valid. */ static bool tdb_check_free_record(struct tdb_context *tdb, tdb_off_t off, - const struct list_struct *rec, + const struct tdb_record *rec, unsigned char **hashes) { if (!tdb_check_record(tdb, off, rec)) @@ -309,7 +309,7 @@ int tdb_check(struct tdb_context *tdb, unsigned int h; unsigned char **hashes; tdb_off_t off, recovery_start; - struct list_struct rec; + struct tdb_record rec; bool found_recovery = false; if (tdb_lockall(tdb) == -1)