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/simple | |
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 'src/liblzma/simple')
-rw-r--r-- | src/liblzma/simple/simple_decoder.c | 2 | ||||
-rw-r--r-- | src/liblzma/simple/simple_encoder.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/simple/simple_decoder.c b/src/liblzma/simple/simple_decoder.c index 1d864f2b..dc4d2415 100644 --- a/src/liblzma/simple/simple_decoder.c +++ b/src/liblzma/simple/simple_decoder.c @@ -28,7 +28,7 @@ lzma_simple_props_decode(void **options, const lzma_allocator *allocator, if (opt == NULL) return LZMA_MEM_ERROR; - opt->start_offset = unaligned_read32le(props); + opt->start_offset = read32le(props); // Don't leave an options structure allocated if start_offset is zero. if (opt->start_offset == 0) diff --git a/src/liblzma/simple/simple_encoder.c b/src/liblzma/simple/simple_encoder.c index 8aa463be..d2cc03e5 100644 --- a/src/liblzma/simple/simple_encoder.c +++ b/src/liblzma/simple/simple_encoder.c @@ -32,7 +32,7 @@ lzma_simple_props_encode(const void *options, uint8_t *out) if (opt == NULL || opt->start_offset == 0) return LZMA_OK; - unaligned_write32le(out, opt->start_offset); + write32le(out, opt->start_offset); return LZMA_OK; } |