]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/run-corrupt.c
Import 03b3682e3fa53c9f5fdf2c4beac8b5d030fd2630 from ctdb:
[ccan] / ccan / tdb / test / run-corrupt.c
index 3bf78835527992f6e16b557b5da947fe06f4bcb6..eaa326bdd0e70274ce14fec0804feb5ae133100e 100644 (file)
@@ -76,9 +76,9 @@ static void check_test(struct tdb_context *tdb)
        /* From the free list chain and hash chains. */
        verifiable += 3 * sizeof(tdb_off_t);
        /* From the record headers & tailer */
-       verifiable += 5 * (sizeof(struct list_struct) + sizeof(uint32_t));
+       verifiable += 5 * (sizeof(struct tdb_record) + sizeof(uint32_t));
        /* The free block: we ignore datalen, keylen, full_hash. */
-       verifiable += sizeof(struct list_struct) - 3*sizeof(uint32_t) +
+       verifiable += sizeof(struct tdb_record) - 3*sizeof(uint32_t) +
                sizeof(uint32_t);
        /* Our check function verifies the key and data. */
        verifiable += ksize + dsize;