X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftest%2Frun-corrupt.c;fp=ccan%2Ftdb%2Ftest%2Frun-corrupt.c;h=bea7dbcdf490218e4cd8ab0a4983246f6fb8be13;hb=44eea6ca52a2de5a817cf54d5d206969845dee3d;hp=067ac861e4913acef1964da692b88fe625d08159;hpb=a1ace0cd114e0c588d6ce1b9e7386af11716e0bd;p=ccan diff --git a/ccan/tdb/test/run-corrupt.c b/ccan/tdb/test/run-corrupt.c index 067ac861..bea7dbcd 100644 --- a/ccan/tdb/test/run-corrupt.c +++ b/ccan/tdb/test/run-corrupt.c @@ -73,7 +73,8 @@ static void check_test(struct tdb_context *tdb) /* This is how many bytes we expect to be verifiable. */ /* From the file header. */ verifiable = strlen(TDB_MAGIC_FOOD) + 1 - + 2 * sizeof(uint32_t) + 2 * sizeof(tdb_off_t); + + 2 * sizeof(uint32_t) + 2 * sizeof(tdb_off_t) + + 2 * sizeof(uint32_t); /* From the free list chain and hash chains. */ verifiable += 3 * sizeof(tdb_off_t); /* From the record headers & tailer */