]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Make parameter names in function definition match declaration.
authorJia Tan <jiat0218@gmail.com>
Sat, 16 Dec 2023 12:28:21 +0000 (20:28 +0800)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 14:57:51 +0000 (17:57 +0300)
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.

(cherry picked from commit 27ab54af848ec4adc9c17362f6c64a42a7003df5)

src/liblzma/common/filter_encoder.c

index 73f9e1064f941ac8d7089f53f4cd3fd3539d92fa..6e7399295e1c0b5b1bb1009ce50e70f173986368 100644 (file)
@@ -200,17 +200,17 @@ lzma_filters_update(lzma_stream *strm, const lzma_filter *filters)
 
 extern lzma_ret
 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,
-                       options, (lzma_filter_find)(&encoder_find), true);
+                       filters, (lzma_filter_find)(&encoder_find), true);
 }
 
 
 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);
 
        strm->internal->supported_actions[LZMA_RUN] = true;