From: W. Felix Handte Date: Tue, 15 Sep 2020 18:06:10 +0000 (-0400) Subject: Make ZSTD_createCDict_advanced2() cctxParams Arg Const X-Git-Tag: v1.4.7~74^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6521a6f64b4270eb5ac1e59b91685600ec5040;p=thirdparty%2Fzstd.git Make ZSTD_createCDict_advanced2() cctxParams Arg Const --- diff --git a/lib/compress/zstd_compress.c b/lib/compress/zstd_compress.c index 08d09aa49..732f39d31 100644 --- a/lib/compress/zstd_compress.c +++ b/lib/compress/zstd_compress.c @@ -3530,11 +3530,12 @@ ZSTD_CDict* ZSTD_createCDict_advanced(const void* dictBuffer, size_t dictSize, } -ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2(const void* dict, size_t dictSize, - ZSTD_dictLoadMethod_e dictLoadMethod, - ZSTD_dictContentType_e dictContentType, - ZSTD_CCtx_params* cctxParams, - ZSTD_customMem customMem) +ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2( + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + const ZSTD_CCtx_params* cctxParams, + ZSTD_customMem customMem) { int const dedicatedDictSearch = cctxParams->enableDedicatedDictSearch && ZSTD_dedicatedDictSearch_isSupported( diff --git a/lib/zstd.h b/lib/zstd.h index f8d5e84da..78c85dee4 100644 --- a/lib/zstd.h +++ b/lib/zstd.h @@ -1411,7 +1411,7 @@ ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2( const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType, - ZSTD_CCtx_params* cctxParams, + const ZSTD_CCtx_params* cctxParams, ZSTD_customMem customMem); ZSTDLIB_API ZSTD_DDict* ZSTD_createDDict_advanced(const void* dict, size_t dictSize,