summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-08 13:45:04 +0200
committerDenys Vlasenko2018-04-08 13:45:04 +0200
commit15684bf5456a7cd12355da0b49cfdcdaf6463e11 (patch)
tree82a0cdc1eac63753d5658b5f1f0f9122c6634b60
parent3a7d16d48885cf880cf404ef23f5fc48c1d1dc6a (diff)
downloadbusybox-15684bf5456a7cd12355da0b49cfdcdaf6463e11.zip
busybox-15684bf5456a7cd12355da0b49cfdcdaf6463e11.tar.gz
lzop: checksum reads do not need to be checksummed
function old new delta do_lzo_decompress 404 427 +23 f_read32 22 - -22 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/lzop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/archival/lzop.c b/archival/lzop.c
index e724b9e..acf0182 100644
--- a/archival/lzop.c
+++ b/archival/lzop.c
@@ -921,7 +921,7 @@ static void write_header(header_t *h)
h->flags32 = htonl(h->flags32); /* native endianness for lzo_compress() */
- /*f_*/write32(chksum_getresult(h->flags32));
+ write32(chksum_getresult(h->flags32));
}
static int read_header(header_t *h)
@@ -986,7 +986,7 @@ static int read_header(header_t *h)
/* UNUSED h->len_and_name[1+l] = 0; */
checksum = chksum_getresult(h->flags32);
- if (f_read32() != checksum)
+ if (read32() != checksum)
return 2;
/* skip extra field [not used yet] */
@@ -1002,7 +1002,7 @@ static int read_header(header_t *h)
for (k = 0; k < extra_field_len; k++)
f_read(&dummy, 1);
checksum = chksum_getresult(h->flags32);
- extra_field_checksum = f_read32();
+ extra_field_checksum = read32();
if (extra_field_checksum != checksum)
return 3;
}