summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-11-13 21:51:08 -0800
committerYann Collet <cyan@fb.com>2020-11-13 21:51:08 -0800
commit8af38013e0161e829f463a73f340a4da7a8b2a5d (patch)
tree132c877076e90d9eb83e31ca33c93142518dbe98 /programs
parent2b3445a2692967267c9289cc4ff0af7a14bcc1c5 (diff)
downloadlz4-8af38013e0161e829f463a73f340a4da7a8b2a5d.tar.gz
lz4-8af38013e0161e829f463a73f340a4da7a8b2a5d.tar.bz2
lz4-8af38013e0161e829f463a73f340a4da7a8b2a5d.zip
LZ4IO_decompressSrcFile() doesn't need mutable prefs
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 842976e..d243224 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -1219,9 +1219,9 @@ selectDecoder(dRess_t ress,
static int
-LZ4IO_decompressSrcFile(LZ4IO_prefs_t* const prefs,
- dRess_t ress,
- const char* input_filename, const char* output_filename)
+LZ4IO_decompressSrcFile(dRess_t ress,
+ const char* input_filename, const char* output_filename,
+ const LZ4IO_prefs_t* const prefs)
{
FILE* const foutput = ress.dstFile;
unsigned long long filesize = 0;
@@ -1267,7 +1267,7 @@ static int LZ4IO_decompressDstFile(LZ4IO_prefs_t* const prefs, dRess_t ress, con
stat_result = 1;
ress.dstFile = foutput;
- LZ4IO_decompressSrcFile(prefs, ress, input_filename, output_filename);
+ LZ4IO_decompressSrcFile(ress, input_filename, output_filename, prefs);
fclose(foutput);
@@ -1318,7 +1318,7 @@ int LZ4IO_decompressMultipleFilenames(LZ4IO_prefs_t* const prefs,
size_t const ifnSize = strlen(inFileNamesTable[i]);
const char* const suffixPtr = inFileNamesTable[i] + ifnSize - suffixSize;
if (!strcmp(suffix, stdoutmark)) {
- missingFiles += LZ4IO_decompressSrcFile(prefs, ress, inFileNamesTable[i], stdoutmark);
+ missingFiles += LZ4IO_decompressSrcFile(ress, inFileNamesTable[i], stdoutmark, prefs);
continue;
}
if (ofnSize <= ifnSize-suffixSize+1) {