aboutsummaryrefslogtreecommitdiff
path: root/archival/lzop.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/lzop.c')
-rw-r--r--archival/lzop.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/archival/lzop.c b/archival/lzop.c
index da09b7a82..ba27aeff0 100644
--- a/archival/lzop.c
+++ b/archival/lzop.c
@@ -141,8 +141,7 @@ static void copy3(uint8_t* ip, const uint8_t* m_pos, unsigned off)
141#define TEST_OP (op <= op_end) 141#define TEST_OP (op <= op_end)
142 142
143static NOINLINE int lzo1x_optimize(uint8_t *in, unsigned in_len, 143static NOINLINE int lzo1x_optimize(uint8_t *in, unsigned in_len,
144 uint8_t *out, unsigned *out_len, 144 uint8_t *out, unsigned *out_len /*, void* wrkmem */)
145 void* wrkmem UNUSED_PARAM)
146{ 145{
147 uint8_t* op; 146 uint8_t* op;
148 uint8_t* ip; 147 uint8_t* ip;
@@ -724,7 +723,7 @@ static NOINLINE int lzo_compress(const header_t *h)
724 /* optimize */ 723 /* optimize */
725 if (h->method == M_LZO1X_999) { 724 if (h->method == M_LZO1X_999) {
726 unsigned new_len = src_len; 725 unsigned new_len = src_len;
727 r = lzo1x_optimize(b2, dst_len, b1, &new_len, NULL); 726 r = lzo1x_optimize(b2, dst_len, b1, &new_len /*, NULL*/);
728 if (r != 0 /*LZO_E_OK*/ || new_len != src_len) 727 if (r != 0 /*LZO_E_OK*/ || new_len != src_len)
729 bb_error_msg_and_die("internal error - optimization failed"); 728 bb_error_msg_and_die("internal error - optimization failed");
730 } 729 }
@@ -859,9 +858,9 @@ static NOINLINE int lzo_decompress(const header_t *h)
859 858
860 /* decompress */ 859 /* decompress */
861// if (option_mask32 & OPT_F) 860// if (option_mask32 & OPT_F)
862// r = lzo1x_decompress(b1, src_len, b2, &d, NULL); 861// r = lzo1x_decompress(b1, src_len, b2, &d /*, NULL*/);
863// else 862// else
864 r = lzo1x_decompress_safe(b1, src_len, b2, &d, NULL); 863 r = lzo1x_decompress_safe(b1, src_len, b2, &d /*, NULL*/);
865 864
866 if (r != 0 /*LZO_E_OK*/ || dst_len != d) { 865 if (r != 0 /*LZO_E_OK*/ || dst_len != d) {
867 bb_error_msg_and_die("corrupted data"); 866 bb_error_msg_and_die("corrupted data");