From ec82a49c3553f7206104582dbfb8b64fa433b491 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 13 May 2024 12:03:51 +0300 Subject: [PATCH] xz: Rename chain_idx to chain_num --- src/xz/coder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xz/coder.c b/src/xz/coder.c index 0d03dc10..0a9aedbb 100644 --- a/src/xz/coder.c +++ b/src/xz/coder.c @@ -1110,9 +1110,9 @@ split_block(uint64_t *block_remaining, // Update the filters if needed. if (opt_block_list[*list_pos - 1].chain_num != opt_block_list[*list_pos].chain_num) { - const unsigned chain_idx + const unsigned chain_num = opt_block_list[*list_pos].chain_num; - const lzma_filter *next = chains[chain_idx]; + const lzma_filter *next = chains[chain_num]; const lzma_ret ret = lzma_filters_update( &strm, next); @@ -1128,7 +1128,7 @@ split_block(uint64_t *block_remaining, message_fatal( _("Error changing to " "filter chain %u: %s"), - chain_idx, + chain_num, message_strm(ret)); } }