]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Fix wrong indentation caused by incorrect settings
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 15 Nov 2009 10:54:45 +0000 (12:54 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 15 Nov 2009 10:54:45 +0000 (12:54 +0200)
in the text editor.

src/liblzma/lz/lz_decoder.c
src/liblzma/lzma/lzma2_encoder.c
src/liblzma/lzma/lzma_encoder_optimum_normal.c

index e91ad81c32a82484cce864b5e33cb70117b9ae1a..350b1f89812579183cd4adc860a9bbe726bfc4c5 100644 (file)
@@ -39,15 +39,15 @@ struct lzma_coder_s {
        /// marker. This may become true before next_finished becomes true.
        bool this_finished;
 
-        /// Temporary buffer needed when the LZ-based filter is not the last
-        /// filter in the chain. The output of the next filter is first
-        /// decoded into buffer[], which is then used as input for the actual
-        /// LZ-based decoder.
-        struct {
-                size_t pos;
-                size_t size;
-                uint8_t buffer[LZMA_BUFFER_SIZE];
-        } temp;
+       /// Temporary buffer needed when the LZ-based filter is not the last
+       /// filter in the chain. The output of the next filter is first
+       /// decoded into buffer[], which is then used as input for the actual
+       /// LZ-based decoder.
+       struct {
+               size_t pos;
+               size_t size;
+               uint8_t buffer[LZMA_BUFFER_SIZE];
+       } temp;
 };
 
 
index aa3216cc5e269f64949721231d2ee9f07c71a383..eda4aa9fa314e5d2debe04dd98646d7a29603c2e 100644 (file)
@@ -274,9 +274,9 @@ static lzma_ret
 lzma2_encoder_options_update(lzma_coder *coder, const lzma_filter *filter)
 {
        // New options can be set only when there is no incomplete chunk.
-        // This is the case at the beginning of the raw stream and right
-        // after LZMA_SYNC_FLUSH.
-        if (filter->options == NULL || coder->sequence != SEQ_INIT)
+       // This is the case at the beginning of the raw stream and right
+       // after LZMA_SYNC_FLUSH.
+       if (filter->options == NULL || coder->sequence != SEQ_INIT)
                return LZMA_PROG_ERROR;
 
        // Look if there are new options. At least for now,
index 4e3754b0dce59b0fee1bb5e8267841374245da77..5772b4497c923a90bd4c035bc7e072bccb53b50f 100644 (file)
@@ -531,7 +531,7 @@ helper2(lzma_coder *coder, uint32_t *reps, const uint8_t *buf,
        const uint32_t cur_and_1_price = cur_price
                        + rc_bit_0_price(coder->is_match[state][pos_state])
                        + get_literal_price(coder, position, buf[-1],
-                       !is_literal_state(state), match_byte, current_byte);
+                       !is_literal_state(state), match_byte, current_byte);
 
        bool next_is_literal = false;