From 13a74b78e37f16c9096ba5fe1859cc04eaa2f9f7 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 13 Sep 2008 12:10:43 +0300 Subject: Renamed constants: - LZMA_VLI_VALUE_MAX -> LZMA_VLI_MAX - LZMA_VLI_VALUE_UNKNOWN -> LZMA_VLI_UNKNOWN - LZMA_HEADER_ERRRO -> LZMA_OPTIONS_ERROR --- src/liblzma/delta/delta_common.c | 2 +- src/liblzma/delta/delta_decoder.c | 2 +- src/liblzma/delta/delta_encoder.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/liblzma/delta') diff --git a/src/liblzma/delta/delta_common.c b/src/liblzma/delta/delta_common.c index d40e0c7f..86ef33be 100644 --- a/src/liblzma/delta/delta_common.c +++ b/src/liblzma/delta/delta_common.c @@ -54,7 +54,7 @@ lzma_delta_coder_init(lzma_next_coder *next, lzma_allocator *allocator, ->distance; if (next->coder->distance < LZMA_DELTA_DISTANCE_MIN || next->coder->distance > LZMA_DELTA_DISTANCE_MAX) - return LZMA_HEADER_ERROR; + return LZMA_OPTIONS_ERROR; // Initialize the rest of the variables. next->coder->pos = 0; diff --git a/src/liblzma/delta/delta_decoder.c b/src/liblzma/delta/delta_decoder.c index ee22ba02..80ef173a 100644 --- a/src/liblzma/delta/delta_decoder.c +++ b/src/liblzma/delta/delta_decoder.c @@ -66,7 +66,7 @@ lzma_delta_props_decode(void **options, lzma_allocator *allocator, const uint8_t *props, size_t props_size) { if (props_size != 1) - return LZMA_HEADER_ERROR; + return LZMA_OPTIONS_ERROR; lzma_options_delta *opt = lzma_alloc(sizeof(lzma_options_delta), allocator); diff --git a/src/liblzma/delta/delta_encoder.c b/src/liblzma/delta/delta_encoder.c index d8f40287..56afa90a 100644 --- a/src/liblzma/delta/delta_encoder.c +++ b/src/liblzma/delta/delta_encoder.c @@ -111,7 +111,7 @@ lzma_delta_props_encode(const void *options, uint8_t *out) if (opt->type != LZMA_DELTA_TYPE_BYTE || opt->distance < LZMA_DELTA_DISTANCE_MIN || opt->distance > LZMA_DELTA_DISTANCE_MAX) - return LZMA_HEADER_ERROR; + return LZMA_OPTIONS_ERROR; out[0] = opt->distance - LZMA_DELTA_DISTANCE_MIN; -- cgit v1.2.3