]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/summary.c
tdb2: make tdb2 compile clean under -Wshadow.
[ccan] / ccan / tdb2 / summary.c
index 56d365883030dce6e85961022c7ac3d7f7e694aa..bb9f5cb54eb5fd3e5dc8fb6257899546e046823b 100644 (file)
@@ -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++;