Fix signed/unsigned issue - dedup - deduplicating backup program
 (HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6d6109301d421104c4d298b7d44914e45ad9e465
 (DIR) parent f555828eafd191899b749a9e41b1bc006206ef62
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed, 21 Mar 2018 12:18:11 +0000
       
       Fix signed/unsigned issue
       
       Diffstat:
         M dedup.c                             |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) 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 {