tFix type - 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 3e574bf2cbc84b64d2617353de8189eccd69022a
(DIR) parent e9c0d478cc17e6553c104b1db2b2e6c55c369938
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 21 Mar 2018 18:00:55 +0000
Fix type
uint64_t is typedef-ed to unsigned long on my machine.
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -438,7 +438,7 @@ list(void)
for (i = 0; i < sizeof(ent.md); i++)
printf("%02x", ent.md[i]);
if (verbose)
- printf(" %llu", ent.nblks * BLKSIZ);
+ printf(" %llu", (unsigned long long)ent.nblks * BLKSIZ);
putchar('\n');
lseek(ifd, ent.nblks * sizeof(ent.blks[0]), SEEK_CUR);
}