mirror of
https://github.com/facebook/zstd.git
synced 2025-07-30 22:23:13 +03:00
Fix const-ness of FIO_displayCompressionParameters
This commit is contained in:
@ -1789,7 +1789,7 @@ static const char* checked_index(const char* options[], size_t length, size_t in
|
|||||||
|
|
||||||
#define INDEX(options, index) checked_index((options), sizeof(options) / sizeof(char*), (index))
|
#define INDEX(options, index) checked_index((options), sizeof(options) / sizeof(char*), (index))
|
||||||
|
|
||||||
void FIO_displayCompressionParameters(FIO_prefs_t* const prefs) {
|
void FIO_displayCompressionParameters(const FIO_prefs_t* prefs) {
|
||||||
static const char* formatOptions[5] = {ZSTD_EXTENSION, GZ_EXTENSION, XZ_EXTENSION,
|
static const char* formatOptions[5] = {ZSTD_EXTENSION, GZ_EXTENSION, XZ_EXTENSION,
|
||||||
LZMA_EXTENSION, LZ4_EXTENSION};
|
LZMA_EXTENSION, LZ4_EXTENSION};
|
||||||
static const char* sparseOptions[3] = {" --no-sparse", "", " --sparse"};
|
static const char* sparseOptions[3] = {" --no-sparse", "", " --sparse"};
|
||||||
|
@ -108,7 +108,7 @@ void FIO_setExcludeCompressedFile(FIO_prefs_t* const prefs, int excludeCompresse
|
|||||||
void FIO_setAllowBlockDevices(FIO_prefs_t* const prefs, int allowBlockDevices);
|
void FIO_setAllowBlockDevices(FIO_prefs_t* const prefs, int allowBlockDevices);
|
||||||
void FIO_setPatchFromMode(FIO_prefs_t* const prefs, int value);
|
void FIO_setPatchFromMode(FIO_prefs_t* const prefs, int value);
|
||||||
void FIO_setContentSize(FIO_prefs_t* const prefs, int value);
|
void FIO_setContentSize(FIO_prefs_t* const prefs, int value);
|
||||||
void FIO_displayCompressionParameters(FIO_prefs_t* const prefs);
|
void FIO_displayCompressionParameters(const FIO_prefs_t* prefs);
|
||||||
|
|
||||||
/* FIO_ctx_t functions */
|
/* FIO_ctx_t functions */
|
||||||
void FIO_setNbFilesTotal(FIO_ctx_t* const fCtx, int value);
|
void FIO_setNbFilesTotal(FIO_ctx_t* const fCtx, int value);
|
||||||
|
Reference in New Issue
Block a user