diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-13 12:10:43 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-13 12:10:43 +0300 |
commit | 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 (patch) | |
tree | aa9c137d41bd5d39fa8835cc77cf325ff13a7e7c /src/lzma | |
parent | Improved the Stream Flags handling API. (diff) | |
download | xz-13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7.tar.xz |
Renamed constants:
- LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX
- LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN
- LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR
Diffstat (limited to 'src/lzma')
-rw-r--r-- | src/lzma/args.c | 2 | ||||
-rw-r--r-- | src/lzma/error.c | 2 | ||||
-rw-r--r-- | src/lzma/list.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/lzma/args.c b/src/lzma/args.c index 70c3978e..2ddb93ed 100644 --- a/src/lzma/args.c +++ b/src/lzma/args.c @@ -461,7 +461,7 @@ set_compression_settings(void) } // Terminate the filter options array. - opt_filters[filter_count].id = LZMA_VLI_VALUE_UNKNOWN; + opt_filters[filter_count].id = LZMA_VLI_UNKNOWN; // If we are using the LZMA_Alone format, allow exactly one filter // which has to be LZMA. diff --git a/src/lzma/error.c b/src/lzma/error.c index e5391068..e66fd140 100644 --- a/src/lzma/error.c +++ b/src/lzma/error.c @@ -49,7 +49,7 @@ str_strm_error(lzma_ret code) case LZMA_BUF_ERROR: return _("Unexpected end of input"); - case LZMA_HEADER_ERROR: + case LZMA_OPTIONS_ERROR: return _("Unsupported options"); case LZMA_UNSUPPORTED_CHECK: diff --git a/src/lzma/list.c b/src/lzma/list.c index e59f28b7..8728d47b 100644 --- a/src/lzma/list.c +++ b/src/lzma/list.c @@ -314,7 +314,7 @@ parse_stream_tail(listing_handle *handle) ret = lzma_vli_reverse_decode(&handle->uncompressed_size, handle->buffer, &tmp); if (ret != LZMA_OK) - handle->uncompressed_size = LZMA_VLI_VALUE_UNKNOWN; + handle->uncompressed_size = LZMA_VLI_UNKNOWN; } // Calculate the Header Metadata Block start offset. @@ -376,9 +376,9 @@ list_native(listing_handle *handle) // If Uncompressed Size isn't present in Block Header, // it must be present in Stream Footer. if (handle->block_options.uncompressed_size - == LZMA_VLI_VALUE_UNKNOWN + == LZMA_VLI_UNKNOWN && handle->stream_flags.uncompressed_size - == LZMA_VLI_VALUE_UNKNOWN) { + == LZMA_VLI_UNKNOWN) { FILE_IS_CORRUPT(); return; } |