aboutsummaryrefslogtreecommitdiff
path: root/archival/bzip2.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-10-16 14:07:41 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-10-16 14:07:41 +0000
commit686b0ef7d83f11741c21aae292558671e5298799 (patch)
treeb70e2f3dde947681d9329abe6ed1a03de81e6be9 /archival/bzip2.c
parent008eda2c548045b4918ebb2e132940a790a84201 (diff)
downloadbusybox-686b0ef7d83f11741c21aae292558671e5298799.tar.gz
busybox-686b0ef7d83f11741c21aae292558671e5298799.tar.bz2
bzip2: move state pointer to the offset 0 (smaller code)
ifdef out DecompressEnd if FEATURE_CLEAN_UP is not seleted fallbackSort 1655 1672 +17 mainSort 2447 2458 +11 bzip2_main 109 119 +10 .rodata 123466 123469 +3 generateMTFValues 433 435 +2 handle_compress 355 356 +1 BZ2_bzCompress 79 78 -1 prepare_new_block 55 48 -7 compressStream 547 503 -44 sendMTFValues 2225 2140 -85 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/4 up/down: 44/-137) Total: -93 bytes text data bss dec hex filename 676421 2538 12104 691063 a8b77 busybox_old 676328 2538 12104 690970 a8b1a busybox_unstripped
Diffstat (limited to 'archival/bzip2.c')
-rw-r--r--archival/bzip2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/archival/bzip2.c b/archival/bzip2.c
index c750a056f..67df14416 100644
--- a/archival/bzip2.c
+++ b/archival/bzip2.c
@@ -116,7 +116,9 @@ USE_DESKTOP(long long) int bz_write_tail(bz_stream *strm, void *wbuf)
total = 0 USE_DESKTOP( + strm->total_out );
err:
+#if ENABLE_FEATURE_CLEAN_UP
BZ2_bzCompressEnd(strm);
+#endif
return total;
}