X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fsummary.c;h=bb9f5cb54eb5fd3e5dc8fb6257899546e046823b;hp=56d365883030dce6e85961022c7ac3d7f7e694aa;hb=5eaf46e9a0d38c371b50d5dd3a433fc721c1c4dc;hpb=51a56b52627e635566253a3fae081c3f466b6bb6 diff --git a/ccan/tdb2/summary.c b/ccan/tdb2/summary.c index 56d36588..bb9f5cb5 100644 --- a/ccan/tdb2/summary.c +++ b/ccan/tdb2/summary.c @@ -38,7 +38,7 @@ static int count_hash(struct tdb_context *tdb, static bool summarize(struct tdb_context *tdb, struct tally *hashes, struct tally *ftables, - struct tally *free, + struct tally *fr, struct tally *keys, struct tally *data, struct tally *extra, @@ -69,7 +69,7 @@ static bool summarize(struct tdb_context *tdb, len = sizeof(p->r) + p->r.max_len; } else if (frec_magic(&p->f) == TDB_FREE_MAGIC) { len = frec_len(&p->f); - tally_add(free, len); + tally_add(fr, len); tally_add(buckets, size_to_bucket(len)); len += sizeof(p->u); unc++;