commit ccaebcb0909f2585ee339cce7f70cfbc4849b186
parent 520be8af4316a964af8002485578be8e9974ca2c
Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 14:42:22 +0000
Dump list output to stdout not stderr
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dedup.c b/dedup.c
@@ -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);
}