diff options
Diffstat (limited to 'archival/bzip2.c')
-rw-r--r-- | archival/bzip2.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/archival/bzip2.c b/archival/bzip2.c index fdb8b9306..ab08ffc1a 100644 --- a/archival/bzip2.c +++ b/archival/bzip2.c | |||
@@ -8,7 +8,7 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include "unarchive.h" | 11 | #include "archive.h" |
12 | 12 | ||
13 | #define CONFIG_BZIP2_FEATURE_SPEED 1 | 13 | #define CONFIG_BZIP2_FEATURE_SPEED 1 |
14 | 14 | ||
@@ -33,14 +33,14 @@ | |||
33 | /* Takes ~300 bytes, detects corruption caused by bad RAM etc */ | 33 | /* Takes ~300 bytes, detects corruption caused by bad RAM etc */ |
34 | #define BZ_LIGHT_DEBUG 0 | 34 | #define BZ_LIGHT_DEBUG 0 |
35 | 35 | ||
36 | #include "bz/bzlib.h" | 36 | #include "libarchive/bz/bzlib.h" |
37 | 37 | ||
38 | #include "bz/bzlib_private.h" | 38 | #include "libarchive/bz/bzlib_private.h" |
39 | 39 | ||
40 | #include "bz/blocksort.c" | 40 | #include "libarchive/bz/blocksort.c" |
41 | #include "bz/bzlib.c" | 41 | #include "libarchive/bz/bzlib.c" |
42 | #include "bz/compress.c" | 42 | #include "libarchive/bz/compress.c" |
43 | #include "bz/huffman.c" | 43 | #include "libarchive/bz/huffman.c" |
44 | 44 | ||
45 | /* No point in being shy and having very small buffer here. | 45 | /* No point in being shy and having very small buffer here. |
46 | * bzip2 internal buffers are much bigger anyway, hundreds of kbytes. | 46 | * bzip2 internal buffers are much bigger anyway, hundreds of kbytes. |
@@ -128,10 +128,12 @@ IF_DESKTOP(long long) int FAST_FUNC compressStream(unpack_info_t *info UNUSED_PA | |||
128 | break; | 128 | break; |
129 | } | 129 | } |
130 | 130 | ||
131 | #if ENABLE_FEATURE_CLEAN_UP | 131 | /* Can't be conditional on ENABLE_FEATURE_CLEAN_UP - |
132 | * we are called repeatedly | ||
133 | */ | ||
132 | BZ2_bzCompressEnd(strm); | 134 | BZ2_bzCompressEnd(strm); |
133 | free(iobuf); | 135 | free(iobuf); |
134 | #endif | 136 | |
135 | return total; | 137 | return total; |
136 | } | 138 | } |
137 | 139 | ||