diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 00:41:28 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2019-12-31 00:47:49 +0200 |
commit | 7136f1735c60ac6967c4b8e277fcde53d485234f (patch) | |
tree | 97cbabc12a7877ac133ee039257befa1d97fd26b /src/liblzma/common/stream_flags_encoder.c | |
parent | Rename read32ne to aligned_read32ne, and similarly for the others. (diff) | |
download | xz-7136f1735c60ac6967c4b8e277fcde53d485234f.tar.xz |
Rename unaligned_read32ne to read32ne, and similarly for the others.
Diffstat (limited to '')
-rw-r--r-- | src/liblzma/common/stream_flags_encoder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liblzma/common/stream_flags_encoder.c b/src/liblzma/common/stream_flags_encoder.c index 4e717159..b98ab17c 100644 --- a/src/liblzma/common/stream_flags_encoder.c +++ b/src/liblzma/common/stream_flags_encoder.c @@ -46,8 +46,8 @@ lzma_stream_header_encode(const lzma_stream_flags *options, uint8_t *out) const uint32_t crc = lzma_crc32(out + sizeof(lzma_header_magic), LZMA_STREAM_FLAGS_SIZE, 0); - unaligned_write32le(out + sizeof(lzma_header_magic) - + LZMA_STREAM_FLAGS_SIZE, crc); + write32le(out + sizeof(lzma_header_magic) + LZMA_STREAM_FLAGS_SIZE, + crc); return LZMA_OK; } @@ -66,7 +66,7 @@ lzma_stream_footer_encode(const lzma_stream_flags *options, uint8_t *out) if (!is_backward_size_valid(options)) return LZMA_PROG_ERROR; - unaligned_write32le(out + 4, options->backward_size / 4 - 1); + write32le(out + 4, options->backward_size / 4 - 1); // Stream Flags if (stream_flags_encode(options, out + 2 * 4)) @@ -76,7 +76,7 @@ lzma_stream_footer_encode(const lzma_stream_flags *options, uint8_t *out) const uint32_t crc = lzma_crc32( out + 4, 4 + LZMA_STREAM_FLAGS_SIZE, 0); - unaligned_write32le(out, crc); + write32le(out, crc); // Magic memcpy(out + 2 * 4 + LZMA_STREAM_FLAGS_SIZE, |