tDump list output to stdout not stderr - 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 ccaebcb0909f2585ee339cce7f70cfbc4849b186
 (DIR) parent 520be8af4316a964af8002485578be8e9974ca2c
 (HTM) Author: sin <sin@2f30.org>
       Date:   Wed, 21 Mar 2018 14:42:22 +0000
       
       Dump list output to stdout not stderr
       
       Diffstat:
         M dedup.c                             |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/dedup.c b/dedup.c
       t@@ -482,10 +482,13 @@ list(void)
                lseek(ifd, sizeof(enthdr), SEEK_SET);
                for (i = 0; i < enthdr.nents; i++) {
                        struct ent ent;
       +                size_t i;
        
                        if (xread(ifd, &ent, sizeof(ent)) == 0)
                                errx(1, "unexpected EOF");
       -                dump_md(ent.md, sizeof(ent.md));
       +
       +                for (i = 0; i < sizeof(ent.md); i++)
       +                        printf("%02x", ent.md[i]);
                        putchar('\n');
                        lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR);
                }