dedup

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

commit a4b92b7d3ace3ec50598726b3879ead44864f4e1
parent da5196be59c4f03fd81127900dd1b1afdbdfa34f
Author: sin <sin@2f30.org>
Date:   Tue, 14 May 2019 14:01:55 +0300

Rename fn to loadmd

Diffstat:
Msnap.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/snap.c b/snap.c @@ -158,17 +158,17 @@ static int initmdhead(struct sctx *sctx) { struct shdr *shdr; - int (*fn)(struct sctx *, int); + int (*loadmd)(struct sctx *, int); uint64_t i; if (!sctx->crypto) - fn = loadmdnone; + loadmd = loadmdnone; else - fn = loadmdcrypto; + loadmd = loadmdcrypto; shdr = &sctx->shdr; for (i = 0; i < shdr->nbd; i++) { - if ((*fn)(sctx, i == 0) == 0) + if ((*loadmd)(sctx, i == 0) == 0) continue; while (!TAILQ_EMPTY(&sctx->mdhead)) {