dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit 2ddf3b5d77e2dc2b1586359d720a0c502b7a8c0d
parent f7a254938107c8f37ec85da48753fbf782f306d6
Author: sin <sin@2f30.org>
Date:   Wed, 20 Feb 2019 15:38:32 +0000

No need for a local var

Diffstat:
Mdedup.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

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();