From: Jonathan Dieter Date: Mon, 8 Oct 2018 13:05:10 +0000 (+0100) Subject: Revert "Code to create test zchunk file with optional flags" X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~94 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=05d9efea77cee097f560e9a2ef80477eb4f9c8d2;p=zchunk.git Revert "Code to create test zchunk file with optional flags" This reverts commit cf4d76a6e3882cd3aea012d507020cd714bf563a. --- diff --git a/src/lib/header.c b/src/lib/header.c index 3ebae0a..cc402f2 100644 --- a/src/lib/header.c +++ b/src/lib/header.c @@ -238,7 +238,7 @@ static bool preface_create(zckCtx *zck) { length += zck->hash_type.digest_size; /* Write out flags */ - size_t flags = 2; + size_t flags = 0; if(zck->has_streams) flags &= 1; compint_from_size(header+length, flags, &length); @@ -248,11 +248,6 @@ static bool preface_create(zckCtx *zck) { free(header); return false; } - - compint_from_size(header+length, 15, &length); - header = zrealloc(header, length + 100); - memcpy(header+length, "This is a test\0", 15); - length += 15; compint_from_size(header+length, zck->index_size, &length); /* Shrink header to actual size */