diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-08 14:00:03 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-08 14:00:03 +0200 |
commit | 24ef5c63750ba5330f5025f354b6d28b794fd599 (patch) | |
tree | 92c9142b44ae43bc7e49d9ff4646583c1ad5cd74 | |
parent | 15684bf5456a7cd12355da0b49cfdcdaf6463e11 (diff) | |
download | busybox-w32-24ef5c63750ba5330f5025f354b6d28b794fd599.tar.gz busybox-w32-24ef5c63750ba5330f5025f354b6d28b794fd599.tar.bz2 busybox-w32-24ef5c63750ba5330f5025f354b6d28b794fd599.zip |
lzop: reuse strings
function old new delta
lzo_compress 470 483 +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes
text data bss dec hex filename
940011 477 7284 947772 e763c busybox_old
939976 477 7284 947737 e7619 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | archival/lzop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archival/lzop.c b/archival/lzop.c index acf01829d..f7b3bc53c 100644 --- a/archival/lzop.c +++ b/archival/lzop.c | |||
@@ -682,7 +682,7 @@ static NOINLINE int lzo_compress(const header_t *h) | |||
682 | bb_error_msg_and_die("internal error"); | 682 | bb_error_msg_and_die("internal error"); |
683 | 683 | ||
684 | if (r != 0) /* not LZO_E_OK */ | 684 | if (r != 0) /* not LZO_E_OK */ |
685 | bb_error_msg_and_die("internal error - compression failed"); | 685 | bb_error_msg_and_die("%s: %s", "internal error", "compression"); |
686 | 686 | ||
687 | /* write compressed block size */ | 687 | /* write compressed block size */ |
688 | if (dst_len < src_len) { | 688 | if (dst_len < src_len) { |
@@ -691,7 +691,7 @@ static NOINLINE int lzo_compress(const header_t *h) | |||
691 | unsigned new_len = src_len; | 691 | unsigned new_len = src_len; |
692 | r = lzo1x_optimize(b2, dst_len, b1, &new_len /*, NULL*/); | 692 | r = lzo1x_optimize(b2, dst_len, b1, &new_len /*, NULL*/); |
693 | if (r != 0 /*LZO_E_OK*/ || new_len != src_len) | 693 | if (r != 0 /*LZO_E_OK*/ || new_len != src_len) |
694 | bb_error_msg_and_die("internal error - optimization failed"); | 694 | bb_error_msg_and_die("%s: %s", "internal error", "optimization"); |
695 | } | 695 | } |
696 | write32(dst_len); | 696 | write32(dst_len); |
697 | } else { | 697 | } else { |