summaryrefslogtreecommitdiffstats
path: root/programs
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2020-11-14 05:49:43 (GMT)
committerYann Collet <cyan@fb.com>2020-11-14 05:49:43 (GMT)
commit2b3445a2692967267c9289cc4ff0af7a14bcc1c5 (patch)
treeee0c82b8ad3584c1844f89ce6fe1ebde273d6d10 /programs
parent8d37662e481e95527f9ecf97abbb160f0a674cad (diff)
downloadlz4-2b3445a2692967267c9289cc4ff0af7a14bcc1c5.zip
lz4-2b3445a2692967267c9289cc4ff0af7a14bcc1c5.tar.gz
lz4-2b3445a2692967267c9289cc4ff0af7a14bcc1c5.tar.bz2
selectDecoder() doesn't need mutable prefs
Diffstat (limited to 'programs')
-rw-r--r--programs/lz4io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 9395037..842976e 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -1153,9 +1153,9 @@ static int fseek_u32(FILE *fp, unsigned offset, int where)
#define ENDOFSTREAM ((unsigned long long)-1)
static unsigned long long
-selectDecoder(LZ4IO_prefs_t* const prefs,
- dRess_t ress,
- FILE* finput, FILE* foutput)
+selectDecoder(dRess_t ress,
+ FILE* finput, FILE* foutput,
+ const LZ4IO_prefs_t* const prefs)
{
unsigned char MNstore[MAGICNUMBER_SIZE];
unsigned magicNumber;
@@ -1234,7 +1234,7 @@ LZ4IO_decompressSrcFile(LZ4IO_prefs_t* const prefs,
/* Loop over multiple streams */
for ( ; ; ) { /* endless loop, see break condition */
unsigned long long const decodedSize =
- selectDecoder(prefs, ress, finput, foutput);
+ selectDecoder(ress, finput, foutput, prefs);
if (decodedSize == ENDOFSTREAM) break;
filesize += decodedSize;
}