aboutsummaryrefslogtreecommitdiff
path: root/debug/full_flush.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-09-27 19:09:21 +0300
committerLasse Collin <lasse.collin@tukaani.org>2008-09-27 19:09:21 +0300
commit1dcecfb09b55157b8653d747963069c8bed74f04 (patch)
tree81fa1f1e8bf6871981970ca826d897db6f33527b /debug/full_flush.c
parentAdded 7z2lzma.bash. (diff)
downloadxz-1dcecfb09b55157b8653d747963069c8bed74f04.tar.xz
Some API changes, bug fixes, cleanups etc.
Diffstat (limited to '')
-rw-r--r--debug/full_flush.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug/full_flush.c b/debug/full_flush.c
index 50725360..3c914549 100644
--- a/debug/full_flush.c
+++ b/debug/full_flush.c
@@ -74,9 +74,14 @@ main(int argc, char **argv)
// Config
+ lzma_options_lzma opt_lzma;
+ if (lzma_lzma_preset(&opt_lzma, 0)) {
+ fprintf(stderr, "preset failed\n");
+ exit(1);
+ }
lzma_filter filters[LZMA_BLOCK_FILTERS_MAX + 1];
filters[0].id = LZMA_FILTER_LZMA2;
- filters[0].options = (void *)&lzma_preset_lzma[0];
+ filters[0].options = &opt_lzma;
filters[1].id = LZMA_VLI_UNKNOWN;
// Init