mirror of https://git.tukaani.org/xz.git
liblzma: Make parameter names in function definition match declaration.
lzma_raw_encoder() and lzma_raw_encoder_init() used "options" as the parameter name instead of "filters" (used by the declaration). "filters" is more clear since the parameter represents the list of filters passed to the raw encoder, each of which contains filter options.
This commit is contained in:
parent
019afd72e0
commit
27ab54af84
|
@ -219,17 +219,17 @@ lzma_filters_update(lzma_stream *strm, const lzma_filter *filters)
|
||||||
|
|
||||||
extern lzma_ret
|
extern lzma_ret
|
||||||
lzma_raw_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator,
|
lzma_raw_encoder_init(lzma_next_coder *next, const lzma_allocator *allocator,
|
||||||
const lzma_filter *options)
|
const lzma_filter *filters)
|
||||||
{
|
{
|
||||||
return lzma_raw_coder_init(next, allocator,
|
return lzma_raw_coder_init(next, allocator,
|
||||||
options, (lzma_filter_find)(&encoder_find), true);
|
filters, (lzma_filter_find)(&encoder_find), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern LZMA_API(lzma_ret)
|
extern LZMA_API(lzma_ret)
|
||||||
lzma_raw_encoder(lzma_stream *strm, const lzma_filter *options)
|
lzma_raw_encoder(lzma_stream *strm, const lzma_filter *filters)
|
||||||
{
|
{
|
||||||
lzma_next_strm_init(lzma_raw_coder_init, strm, options,
|
lzma_next_strm_init(lzma_raw_coder_init, strm, filters,
|
||||||
(lzma_filter_find)(&encoder_find), true);
|
(lzma_filter_find)(&encoder_find), true);
|
||||||
|
|
||||||
strm->internal->supported_actions[LZMA_RUN] = true;
|
strm->internal->supported_actions[LZMA_RUN] = true;
|
||||||
|
|
Loading…
Reference in New Issue