No need for a local var - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 2ddf3b5d77e2dc2b1586359d720a0c502b7a8c0d DIR parent f7a254938107c8f37ec85da48753fbf782f306d6 HTML Author: sin <sin@2f30.org> Date: Wed, 20 Feb 2019 15:38:32 +0000 No need for a local var Diffstat: M dedup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -680,11 +680,10 @@ walk(int (*fn)(struct snapshot *, void *), void *arg) void init_cache(void) { - uint64_t nents, i; + uint64_t i; - nents = cache_nr_entries(); xlseek(cfd, 0, SEEK_SET); - for (i = 0; i < nents; i++) { + for (i = 0; i < cache_nr_entries(); i++) { struct cache_entry *ent; ent = alloc_cache_entry();