dedup

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

commit 6d6109301d421104c4d298b7d44914e45ad9e465
parent f555828eafd191899b749a9e41b1bc006206ef62
Author: sin <sin@2f30.org>
Date:   Wed, 21 Mar 2018 12:18:11 +0000

Fix signed/unsigned issue

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

diff --git a/dedup.c b/dedup.c @@ -283,7 +283,7 @@ dedup(int fd) } void -str2bin(unsigned char *s, uint8_t *d) +str2bin(char *s, uint8_t *d) { size_t i, len = strlen(s) / 2; @@ -292,7 +292,7 @@ str2bin(unsigned char *s, uint8_t *d) } void -extract(unsigned char *id, int fd) +extract(char *id, int fd) { unsigned char md[SHA256_DIGEST_LENGTH]; struct ent *ent; @@ -469,7 +469,7 @@ usage(void) int main(int argc, char *argv[]) { - unsigned char *id = NULL; + char *id = NULL; int lflag = 0, cflag = 0; ARGBEGIN {