diff options
author | Yann Collet <cyan@fb.com> | 2017-08-12 00:46:52 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-08-12 00:46:52 (GMT) |
commit | 77f99d2922a82bd3187dd7086a8b9dee06bbaed6 (patch) | |
tree | 8c36d08a5792b69bce501b46c8f87d5af794f3d0 /examples/frameCompress.c | |
parent | 757497ae3db93a78d146ff573ae267f54e49c9b6 (diff) | |
download | lz4-77f99d2922a82bd3187dd7086a8b9dee06bbaed6.zip lz4-77f99d2922a82bd3187dd7086a8b9dee06bbaed6.tar.gz lz4-77f99d2922a82bd3187dd7086a8b9dee06bbaed6.tar.bz2 |
restored block checksum capability at lz4frame API level
Diffstat (limited to 'examples/frameCompress.c')
-rw-r--r-- | examples/frameCompress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/frameCompress.c b/examples/frameCompress.c index 0a42fe3..8712725 100644 --- a/examples/frameCompress.c +++ b/examples/frameCompress.c @@ -14,7 +14,7 @@ static const LZ4F_preferences_t lz4_preferences = { { LZ4F_max256KB, LZ4F_blockLinked, LZ4F_noContentChecksum, LZ4F_frame, - 0 /* content size unknown */, 0 /* no dictID */ , { 0 } /* reserved */ }, + 0 /* content size unknown */, 0 /* no dictID */ , LZ4F_noBlockChecksum }, 0, /* compression level */ 0, /* autoflush */ { 0, 0, 0, 0 }, /* reserved, must be set to 0 */ @@ -266,7 +266,7 @@ int main(int argc, const char **argv) { ret = compress_file(inpFp, outFp, &sizeIn, &sizeOut); if (ret) { printf("compress : failed with code %zu\n", ret); - return ret; + return (int)ret; } printf("%s: %zu → %zu bytes, %.1f%%\n", inpFilename, sizeIn, sizeOut, @@ -286,7 +286,7 @@ int main(int argc, const char **argv) { ret = decompress_file(inpFp, outFp); if (ret) { printf("decompress : failed with code %zu\n", ret); - return ret; + return (int)ret; } printf("decompress : done\n"); |