dedup

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

commit 01c8fce481e7a253ac9a96c4bbc877aab2945586
parent 72ba1a8a75b1990156ec209538cc00498efcb43d
Author: sin <sin@2f30.org>
Date:   Sun, 12 May 2019 16:28:15 +0100

Compare against define in assert()

Diffstat:
Mbstorage.c | 2+-
Msnap.c | 2+-
Mstate.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bstorage.c b/bstorage.c @@ -139,7 +139,7 @@ unpackbhdr(int fd, struct bhdr *bhdr) &bhdr->flags, &bhdr->nbd); - assert(n == sizeof(buf)); + assert(n == BHDRSIZE); return n; } diff --git a/snap.c b/snap.c @@ -79,7 +79,7 @@ unpackshdr(int fd, struct shdr *shdr) &shdr->flags, &shdr->nbd); - assert(n == sizeof(buf)); + assert(n == SHDRSIZE); return n; } diff --git a/state.c b/state.c @@ -49,7 +49,7 @@ unpackshdr(int fd, struct shdr *shdr) } n = unpack(buf, "q", &shdr->flags); - assert(n == sizeof(buf)); + assert(n == SHDRSIZE); return n; }