tNo need for a local var - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 2ddf3b5d77e2dc2b1586359d720a0c502b7a8c0d
(DIR) parent f7a254938107c8f37ec85da48753fbf782f306d6
(HTM) 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
t@@ -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();