Compare against define in assert() - 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 01c8fce481e7a253ac9a96c4bbc877aab2945586
 (DIR) parent 72ba1a8a75b1990156ec209538cc00498efcb43d
 (HTM) Author: sin <sin@2f30.org>
       Date:   Sun, 12 May 2019 16:28:15 +0100
       
       Compare against define in assert()
       
       Diffstat:
         M bstorage.c                          |       2 +-
         M snap.c                              |       2 +-
         M state.c                             |       2 +-
       
       3 files changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) 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;
        }
        
 (DIR) 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;
        }
        
 (DIR) 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;
        }