mirror of
https://github.com/facebook/zstd.git
synced 2025-07-29 11:21:22 +03:00
[contrib][linux] Fix a warning in zstd_reset_cstream()
- This fixes the below warning: ../lib/zstd/zstd_compress_module.c: In function 'zstd_reset_cstream': ../lib/zstd/zstd_compress_module.c:136:9: warning: 'ZSTD_resetCStream' is deprecated [-Wdeprecated-declarations] 136 | return ZSTD_resetCStream(cstream, pledged_src_size); | ^~~~~~ In file included from ../include/linux/zstd.h:26, from ../lib/zstd/zstd_compress_module.c:15: ../include/linux/zstd_lib.h:2277:8: note: declared here 2277 | size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize); | ^~~~~~~~~~~~~~~~~ ZSTD_resetCstream is deprecated and zstd_CCtx_reset is suggested to use hence let's switch to it. Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
This commit is contained in:
@ -133,7 +133,7 @@ EXPORT_SYMBOL(zstd_init_cstream);
|
|||||||
size_t zstd_reset_cstream(zstd_cstream *cstream,
|
size_t zstd_reset_cstream(zstd_cstream *cstream,
|
||||||
unsigned long long pledged_src_size)
|
unsigned long long pledged_src_size)
|
||||||
{
|
{
|
||||||
return ZSTD_resetCStream(cstream, pledged_src_size);
|
return ZSTD_CCtx_reset(cstream, pledged_src_size);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL(zstd_reset_cstream);
|
EXPORT_SYMBOL(zstd_reset_cstream);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user