Skip to content
Snippets Groups Projects
Commit df9b7755 authored by Kevin Svetlitski's avatar Kevin Svetlitski
Browse files

Fix const-ness of FIO_displayCompressionParameters

parent 63fe6198
No related branches found
No related tags found
No related merge requests found
...@@ -1789,7 +1789,7 @@ static const char* checked_index(const char* options[], size_t length, size_t 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 ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment