X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fsummary.c;h=bb9f5cb54eb5fd3e5dc8fb6257899546e046823b;hp=56d365883030dce6e85961022c7ac3d7f7e694aa;hb=a2083afe4b327a542649b719e88178279fb5dc88;hpb=2491b65a6d10cd6ca1a3e05bf535eb0180047922 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++;