diff options
author | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-11 04:40:00 (GMT) |
---|---|---|
committer | Tim Zakian <2895723+tzakian@users.noreply.github.com> | 2019-01-11 04:40:00 (GMT) |
commit | 416916146f049e8f9fc5c3aa586b5e5e8f784ce5 (patch) | |
tree | 95046d1a56ff888bb538cd15d52249802b56579e /programs/lz4cli.c | |
parent | 5822e667ccf2f7ea89029d2536d4a49c05c327ae (diff) | |
download | lz4-416916146f049e8f9fc5c3aa586b5e5e8f784ce5.zip lz4-416916146f049e8f9fc5c3aa586b5e5e8f784ce5.tar.gz lz4-416916146f049e8f9fc5c3aa586b5e5e8f784ce5.tar.bz2 |
Add constant pointer annotations
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r-- | programs/lz4cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c index d956b87..464e43b 100644 --- a/programs/lz4cli.c +++ b/programs/lz4cli.c @@ -92,7 +92,7 @@ static unsigned displayLevel = 2; /* 0 : no display ; 1: errors only ; 2 : dow ***************************************/ #define DEFAULT_COMPRESSOR LZ4IO_compressFilename #define DEFAULT_DECOMPRESSOR LZ4IO_decompressFilename -int LZ4IO_compressFilename_Legacy(LZ4IO_prefs_t* prefs, const char* input_filename, const char* output_filename, int compressionlevel); /* hidden function */ +int LZ4IO_compressFilename_Legacy(LZ4IO_prefs_t* const prefs, const char* input_filename, const char* output_filename, int compressionlevel); /* hidden function */ /*-*************************** @@ -318,7 +318,7 @@ int main(int argc, const char** argv) char* dynNameSpace = NULL; const char** inFileNames = (const char**) calloc(argc, sizeof(char*)); unsigned ifnIdx=0; - LZ4IO_prefs_t* prefs = LZ4IO_defaultPreferences(); + LZ4IO_prefs_t* const prefs = LZ4IO_defaultPreferences(); const char nullOutput[] = NULL_OUTPUT; const char extension[] = LZ4_EXTENSION; size_t blockSize = LZ4IO_setBlockSizeID(prefs, LZ4_BLOCKSIZEID_DEFAULT); |