diff options
author | Alexander Mohr <alexander.m.mohr@mercedes-benz.com> | 2022-06-10 06:00:38 (GMT) |
---|---|---|
committer | Alexander Mohr <alexander.m.mohr@mercedes-benz.com> | 2022-06-10 06:00:38 (GMT) |
commit | 62f6cef564a9478b92e6dbd0faa81eaa1a90b34f (patch) | |
tree | 1c801d4a4c20dd950abecd0f173013bbb0f48af4 /lib/lz4frame.c | |
parent | 4aeb5020c35e2464c25eb69d8bf6c7645b8faf20 (diff) | |
download | lz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.zip lz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.tar.gz lz4-62f6cef564a9478b92e6dbd0faa81eaa1a90b34f.tar.bz2 |
review: Fix review findings
This commit fixes the review findings
Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com>
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r-- | lib/lz4frame.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index bcf9629..0c78a1f 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -221,6 +221,9 @@ static const size_t BFSize = LZ4F_BLOCK_CHECKSUM_SIZE; /* block footer : checks /*-************************************ * Structures and local types **************************************/ + +typedef enum { LZ4B_COMPRESSED, LZ4B_UNCOMPRESSED} LZ4F_blockCompression_t; + typedef struct LZ4F_cctx_s { LZ4F_preferences_t prefs; @@ -854,8 +857,8 @@ static int LZ4F_localSaveDict(LZ4F_cctx_t* cctxPtr) static int LZ4F_localDictSize(LZ4F_cctx_t* cctxPtr) { if (cctxPtr->prefs.compressionLevel < LZ4HC_CLEVEL_MIN) - return LZ4_DictSize ((LZ4_stream_t*)(cctxPtr->lz4CtxPtr), LZ4F_maxDictSize()); - return LZ4_DictHCSize ((LZ4_streamHC_t*)(cctxPtr->lz4CtxPtr), LZ4F_maxDictSize()); + return LZ4_getDictSize ((LZ4_stream_t*)(cctxPtr->lz4CtxPtr), LZ4F_maxDictSize()); + return LZ4_getDictHCSize ((LZ4_streamHC_t*)(cctxPtr->lz4CtxPtr), LZ4F_maxDictSize()); } typedef enum { notDone, fromTmpBuffer, fromSrcBuffer } LZ4F_lastBlockStatus; |