summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.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/lz4hc.c
parentf11afafe234ea45a6d80f8b21df1d603ace4e025 (diff)
downloadlz4-b805d581b97be95fcc000134a54aa7c591b3ef09.zip
lz4-b805d581b97be95fcc000134a54aa7c591b3ef09.tar.gz
lz4-b805d581b97be95fcc000134a54aa7c591b3ef09.tar.bz2
Removed obsolete functions from lz4 cli
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 4f1272c..909481e 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -673,7 +673,8 @@ int LZ4_saveDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, char* safeBuffer, int dictS
* Deprecated Functions
***********************************/
/* Deprecated compression functions */
-int LZ4_compressHC(const char* source, char* dest, int inputSize) { return LZ4_compressHC2(source, dest, inputSize, 0); }
+/* These functions are planned to start generate warnings by r131 approximately */
+int LZ4_compressHC(const char* src, char* dst, int srcSize) { return LZ4_compressHC_safe (src, dst, srcSize, LZ4_compressBound(srcSize), 0); }
int LZ4_compressHC_limitedOutput(const char* src, char* dst, int srcSize, int maxDstSize) { return LZ4_compressHC_safe(src, dst, srcSize, maxDstSize, 0); }
int LZ4_compressHC2(const char* src, char* dst, int srcSize, int cLevel) { return LZ4_compressHC_safe (src, dst, srcSize, LZ4_compressBound(srcSize), cLevel); }
int LZ4_compressHC2_limitedOutput(const char* src, char* dst, int srcSize, int maxDstSize, int cLevel) { return LZ4_compressHC_safe(src, dst, srcSize, maxDstSize, cLevel); }