Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zstd
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
yocto-mirrors
zstd
Commits
df9b7755
Commit
df9b7755
authored
3 years ago
by
Kevin Svetlitski
Browse files
Options
Downloads
Patches
Plain Diff
Fix const-ness of FIO_displayCompressionParameters
parent
63fe6198
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
programs/fileio.c
+1
-1
1 addition, 1 deletion
programs/fileio.c
programs/fileio.h
+1
-1
1 addition, 1 deletion
programs/fileio.h
with
2 additions
and
2 deletions
programs/fileio.c
+
1
−
1
View file @
df9b7755
...
@@ -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"
};
...
...
This diff is collapsed.
Click to expand it.
programs/fileio.h
+
1
−
1
View file @
df9b7755
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment