summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorBlaise Sanouillet <43636048+blezsan@users.noreply.github.com>2018-09-28 16:53:14 (GMT)
committerBlaise Sanouillet <43636048+blezsan@users.noreply.github.com>2018-09-28 16:53:14 (GMT)
commit32501603c71fa61bc14ba38e5646c8ba16c27e6e (patch)
tree8876080ab3f270459f78d2e6c66cf7cb186e0634 /programs
parent718d16ef29315b98236ef5da9496f0477c152f5d (diff)
downloadlz4-32501603c71fa61bc14ba38e5646c8ba16c27e6e.zip
lz4-32501603c71fa61bc14ba38e5646c8ba16c27e6e.tar.gz
lz4-32501603c71fa61bc14ba38e5646c8ba16c27e6e.tar.bz2
support custom block sizes: fix usage message & remove unused functions
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4cli.c2
-rw-r--r--programs/lz4io.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 759f336..3709f50 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -134,7 +134,7 @@ static int usage_advanced(const char* exeName)
DISPLAY( " -r : operate recursively on directories (sets also -m) \n");
#endif
DISPLAY( " -l : compress using Legacy format (Linux kernel compression)\n");
- DISPLAY( " -B# : cut file into independent blocks of size # bytes [32+] \n");
+ DISPLAY( " -B# : cut file into blocks of size # bytes [32+] \n");
DISPLAY( " or predefined block size [4-7] (default: 7) \n");
DISPLAY( " -BD : Block dependency (improve compression ratio) \n");
DISPLAY( " -BX : enable block checksum (default:disabled) \n");
diff --git a/programs/lz4io.c b/programs/lz4io.c
index bec3ae4..a35928d 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -256,7 +256,6 @@ void LZ4IO_setRemoveSrcFile(unsigned flag) { g_removeSrcFile = (flag>0); }
** ********************** LZ4 File / Pipe compression ********************* **
** ************************************************************************ */
-static int LZ4IO_GetBlockSize_FromBlockId (int id) { return (1 << (8 + (2 * id))); }
static int LZ4IO_isSkippableMagicNumber(unsigned int magic) {
return (magic & LZ4IO_SKIPPABLEMASK) == LZ4IO_SKIPPABLE0;
}