From: Blaise Sanouillet <43636048+blezsan@users.noreply.github.com> Date: Fri, 28 Sep 2018 17:00:38 +0000 (-0700) Subject: support custom block sizes: fix const X-Git-Tag: upstream/1.9.3~5^2~60^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d9435f1ee0d21072314fc34e37d990941ced7e3;p=platform%2Fupstream%2Flz4.git support custom block sizes: fix const --- diff --git a/tests/checkFrame.c b/tests/checkFrame.c index ace51c7..f32570c 100644 --- a/tests/checkFrame.c +++ b/tests/checkFrame.c @@ -101,9 +101,9 @@ void frameCheck(const char *srcFileName, unsigned bsid, size_t blockSize) { FILE *srcFile; LZ4F_decompressionContext_t dctx = NULL; - size_t srcBufferSize = 4 MB; + const size_t srcBufferSize = 4 MB; void *srcBuffer = malloc(srcBufferSize); - size_t dstBufferSize = 4 MB; + const size_t dstBufferSize = 4 MB; void *dstBuffer = malloc(dstBufferSize); LZ4F_errorCode_t nextToLoad = 0; size_t curblocksize = 0;