summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-21 18:07:31 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-21 18:07:31 (GMT)
commitb805d581b97be95fcc000134a54aa7c591b3ef09 (patch)
tree7297f5633f31477687129629328d9e360dee55e2 /lib/lz4frame.c
parentf11afafe234ea45a6d80f8b21df1d603ace4e025 (diff)
downloadlz4-b805d581b97be95fcc000134a54aa7c591b3ef09.zip
lz4-b805d581b97be95fcc000134a54aa7c591b3ef09.tar.gz
lz4-b805d581b97be95fcc000134a54aa7c591b3ef09.tar.bz2
Removed obsolete functions from lz4 cli
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r--lib/lz4frame.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index a70dbaf..a2b6a22 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -516,19 +516,19 @@ static size_t LZ4F_compressBlock(void* dst, const void* src, size_t srcSize, com
static int LZ4F_localLZ4_compress_limitedOutput_withState(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
{
(void) level;
- return LZ4_compress_limitedOutput_withState(ctx, src, dst, srcSize, dstSize);
+ return LZ4_compress_safe_extState(ctx, src, dst, srcSize, dstSize);
}
static int LZ4F_localLZ4_compress_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
{
(void) level;
- return LZ4_compress_limitedOutput_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstSize);
+ return LZ4_compress_safe_continue((LZ4_stream_t*)ctx, src, dst, srcSize, dstSize);
}
static int LZ4F_localLZ4_compressHC_limitedOutput_continue(void* ctx, const char* src, char* dst, int srcSize, int dstSize, int level)
{
(void) level;
- return LZ4_compressHC_limitedOutput_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize);
+ return LZ4_compressHC_safe_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstSize);
}
static compressFunc_t LZ4F_selectCompression(LZ4F_blockMode_t blockMode, int level)
@@ -538,7 +538,7 @@ static compressFunc_t LZ4F_selectCompression(LZ4F_blockMode_t blockMode, int lev
if (blockMode == LZ4F_blockIndependent) return LZ4F_localLZ4_compress_limitedOutput_withState;
return LZ4F_localLZ4_compress_limitedOutput_continue;
}
- if (blockMode == LZ4F_blockIndependent) return LZ4_compressHC2_limitedOutput_withStateHC;
+ if (blockMode == LZ4F_blockIndependent) return LZ4_compressHC_safe_extStateHC;
return LZ4F_localLZ4_compressHC_limitedOutput_continue;
}