diff options
author | Yann Collet <cyan@fb.com> | 2023-02-27 04:12:59 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2023-02-27 04:12:59 (GMT) |
commit | a51521916d5cdf8930405f4cf3c0ff9c4d5b6a6c (patch) | |
tree | 245c4537f7a005e0988f1cf75bba7cddbba90f35 /programs/lz4io.c | |
parent | 45a4880b9cbb47ddc6c1758744629b5835d5dd19 (diff) | |
download | lz4-cdir.zip lz4-cdir.tar.gz lz4-cdir.tar.bz2 |
merge into a single UTIL_isDirectory() methodcdir
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r-- | programs/lz4io.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index 09d906e..dcdf6af 100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -328,7 +328,7 @@ static FILE* LZ4IO_openSrcFile(const char* srcFileName) return f; } - if (UTIL_isDir(srcFileName)) { + if (UTIL_isDirectory(srcFileName)) { DISPLAYLEVEL(1, "lz4: %s is a directory -- ignored \n", srcFileName); return NULL; } @@ -387,7 +387,6 @@ LZ4IO_openDstFile(const char* dstFileName, const LZ4IO_prefs_t* const prefs) } - /*************************************** * Legacy Compression ***************************************/ @@ -415,8 +414,10 @@ static int LZ4IO_LZ4_compress(const char* src, char* dst, int srcSize, int dstSi /* LZ4IO_compressFilename_Legacy : * This function is intentionally "hidden" (not published in .h) * It generates compressed streams using the old 'legacy' format */ -int LZ4IO_compressFilename_Legacy(const char* input_filename, const char* output_filename, - int compressionlevel, const LZ4IO_prefs_t* prefs) +int LZ4IO_compressFilename_Legacy(const char* input_filename, + const char* output_filename, + int compressionlevel, + const LZ4IO_prefs_t* prefs) { typedef int (*compress_f)(const char* src, char* dst, int srcSize, int dstSize, int cLevel); compress_f const compressionFunction = (compressionlevel < 3) ? LZ4IO_LZ4_compress : LZ4_compress_HC; |