dedup

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

commit 4898c6cfb92a378928c29895d4ca55536121b52d
parent 713949530b79c2a78039cbd0fc9494393b2532e2
Author: sin <sin@2f30.org>
Date:   Sun,  7 Apr 2019 10:58:01 +0100

Rename var

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

diff --git a/dedup.c b/dedup.c @@ -547,16 +547,16 @@ int main(int argc, char *argv[]) { uint8_t md[MD_SIZE]; - char *id = NULL, *root = NULL, *msg = NULL, *algo = NULL; + char *id = NULL, *root = NULL, *msg = NULL, *hash_name = NULL; int iflag = 0, lflag = 0, cflag = 0; int fd = -1; ARGBEGIN { case 'H': - algo = EARGF(usage()); - hash_algo = hash_name2type(algo); + hash_name = EARGF(usage()); + hash_algo = hash_name2type(hash_name); if (hash_algo < 0) - errx(1, "unknown hash: %s", algo); + errx(1, "unknown hash: %s", hash_name); break; case 'Z': compr_enabled = 0;