diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-27 19:09:21 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-09-27 19:09:21 +0300 |
commit | 1dcecfb09b55157b8653d747963069c8bed74f04 (patch) | |
tree | 81fa1f1e8bf6871981970ca826d897db6f33527b /tests/test_block_header.c | |
parent | Added 7z2lzma.bash. (diff) | |
download | xz-1dcecfb09b55157b8653d747963069c8bed74f04.tar.xz |
Some API changes, bug fixes, cleanups etc.
Diffstat (limited to 'tests/test_block_header.c')
-rw-r--r-- | tests/test_block_header.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_block_header.c b/tests/test_block_header.c index 1d8e9d39..7f94d837 100644 --- a/tests/test_block_header.c +++ b/tests/test_block_header.c @@ -24,6 +24,8 @@ static uint8_t buf[LZMA_BLOCK_HEADER_SIZE_MAX]; static lzma_block known_options; static lzma_block decoded_options; +static lzma_options_lzma opt_lzma; + static lzma_filter filters_none[1] = { { .id = LZMA_VLI_UNKNOWN, @@ -34,7 +36,7 @@ static lzma_filter filters_none[1] = { static lzma_filter filters_one[2] = { { .id = LZMA_FILTER_LZMA2, - .options = (void *)(&lzma_preset_lzma[0]), + .options = &opt_lzma, }, { .id = LZMA_VLI_UNKNOWN, } @@ -53,7 +55,7 @@ static lzma_filter filters_four[5] = { .options = NULL, }, { .id = LZMA_FILTER_LZMA2, - .options = (void *)(&lzma_preset_lzma[0]), + .options = &opt_lzma, }, { .id = LZMA_VLI_UNKNOWN, } @@ -75,7 +77,7 @@ static lzma_filter filters_five[6] = { .options = NULL, }, { .id = LZMA_FILTER_LZMA2, - .options = (void *)(&lzma_preset_lzma[0]), + .options = &opt_lzma, }, { .id = LZMA_VLI_UNKNOWN, } @@ -230,6 +232,7 @@ int main(void) { lzma_init(); + succeed(lzma_lzma_preset(&opt_lzma, 0)); test1(); test2(); |