dedup

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

commit 2370f812d96bdcae0484b0f4f3041e4d1ab0d07d
parent 03aa3e43c5b81940bab9e6990d71bf036a188f27
Author: sin <sin@2f30.org>
Date:   Tue,  7 May 2019 21:04:22 +0100

snap: Update pack functions

Diffstat:
Msnap.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/snap.c b/snap.c @@ -71,9 +71,10 @@ unpackshdr(int fd, struct shdr *shdr) return -1; } - n = unpack(buf, "'16'24qq", + n = unpack(buf, "'16'24'24qq", shdr->magic, shdr->nonce, + shdr->header, &shdr->flags, &shdr->nbd); @@ -88,9 +89,10 @@ packshdr(int fd, struct shdr *shdr) unsigned char buf[SHDRSIZE]; int n; - n = pack(buf, "'16'24qq", + n = pack(buf, "'16'24'24qq", shdr->magic, shdr->nonce, + shdr->header, shdr->flags, shdr->nbd);