diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-11-14 19:45:39 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-11-14 19:45:39 +0200 |
commit | 2291346f0cccf88e605d84b75c9c5aaaaddb5df8 (patch) | |
tree | a3775bdb67fcab104c81a70baf1766027e2c1c4c /debug/sync_flush.c | |
parent | Fix a design error in liblzma API. (diff) | |
download | xz-2291346f0cccf88e605d84b75c9c5aaaaddb5df8.tar.xz |
Update the debug programs so that they compile again.
Diffstat (limited to 'debug/sync_flush.c')
-rw-r--r-- | debug/sync_flush.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/debug/sync_flush.c b/debug/sync_flush.c index 1dccbdaa..4a31efdd 100644 --- a/debug/sync_flush.c +++ b/debug/sync_flush.c @@ -71,7 +71,6 @@ main(int argc, char **argv) .lp = LZMA_LP_DEFAULT, .pb = LZMA_PB_DEFAULT, .preset_dict = NULL, - .persistent = true, .mode = LZMA_MODE_NORMAL, .nice_len = 32, .mf = LZMA_MF_HC3, @@ -106,20 +105,25 @@ main(int argc, char **argv) } // Encoding - encode(0, LZMA_SYNC_FLUSH); encode(6, LZMA_SYNC_FLUSH); encode(0, LZMA_SYNC_FLUSH); encode(7, LZMA_SYNC_FLUSH); encode(0, LZMA_SYNC_FLUSH); encode(0, LZMA_FINISH); + /* encode(53, LZMA_SYNC_FLUSH); -// opt_lzma.literal_context_bits = 2; -// opt_lzma.literal_pos_bits = 1; -// opt_lzma.pos_bits = 0; + opt_lzma.lc = 2; + opt_lzma.lp = 1; + opt_lzma.pb = 0; + if (lzma_filters_update(&strm, filters) != LZMA_OK) { + fprintf(stderr, "update failed\n"); + exit(1); + } encode(404, LZMA_FINISH); */ + // Clean up lzma_end(&strm); |