diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-05-03 19:57:21 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-05-03 19:57:21 (GMT) |
commit | e05088d0eb500d8d673e081929620e538df3d718 (patch) | |
tree | e2d9a3b37d7ebc61a27877565197d4189b99beac /examples/blockStreaming_lineByLine.c | |
parent | b4348a47189f7bce93537a85906d26b09be7e802 (diff) | |
download | lz4-e05088d0eb500d8d673e081929620e538df3d718.zip lz4-e05088d0eb500d8d673e081929620e538df3d718.tar.gz lz4-e05088d0eb500d8d673e081929620e538df3d718.tar.bz2 |
Updated lz4hc API
Diffstat (limited to 'examples/blockStreaming_lineByLine.c')
-rw-r--r-- | examples/blockStreaming_lineByLine.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/blockStreaming_lineByLine.c b/examples/blockStreaming_lineByLine.c index c4fd2e3..f449aa3 100644 --- a/examples/blockStreaming_lineByLine.c +++ b/examples/blockStreaming_lineByLine.c @@ -42,8 +42,8 @@ static void test_compress( { LZ4_stream_t* const lz4Stream = LZ4_createStream(); const size_t cmpBufBytes = LZ4_COMPRESSBOUND(messageMaxBytes); - char* const cmpBuf = malloc(cmpBufBytes); - char* const inpBuf = malloc(ringBufferBytes); + char* const cmpBuf = (char*) malloc(cmpBufBytes); + char* const inpBuf = (char*) malloc(ringBufferBytes); int inpOffset = 0; for ( ; ; ) @@ -90,8 +90,8 @@ static void test_decompress( size_t ringBufferBytes) { LZ4_streamDecode_t* const lz4StreamDecode = LZ4_createStreamDecode(); - char* const cmpBuf = malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); - char* const decBuf = malloc(ringBufferBytes); + char* const cmpBuf = (char*) malloc(LZ4_COMPRESSBOUND(messageMaxBytes)); + char* const decBuf = (char*) malloc(ringBufferBytes); int decOffset = 0; for ( ; ; ) @@ -125,8 +125,8 @@ static int compare(FILE* f0, FILE* f1) { int result = 0; const size_t tempBufferBytes = 65536; - char* const b0 = malloc(tempBufferBytes); - char* const b1 = malloc(tempBufferBytes); + char* const b0 = (char*) malloc(tempBufferBytes); + char* const b1 = (char*) malloc(tempBufferBytes); while(0 == result) { |