aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/memcmplen.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-09-11 18:47:26 +0300
committerJia Tan <jiat0218@gmail.com>2023-10-31 01:03:25 +0800
commite3478ae4f36cd06522a2fef023860893f068434d (patch)
tree2dd825cc25725fe28c6d181eb2c1bde8b81b7ed1 /src/liblzma/common/memcmplen.h
parentxz, xzdec, lzmainfo: Use tuklib_attr_noreturn. (diff)
downloadxz-e3478ae4f36cd06522a2fef023860893f068434d.tar.xz
liblzma: Move a few __attribute__ uses in function declarations.
The API headers have many attributes but these were left as is for now.
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/memcmplen.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h
index 3c12422b..abf01d51 100644
--- a/src/liblzma/common/memcmplen.h
+++ b/src/liblzma/common/memcmplen.h
@@ -49,7 +49,8 @@
/// It's rounded up to 2^n. This extra amount needs to be
/// allocated in the buffers being used. It needs to be
/// initialized too to keep Valgrind quiet.
-static inline uint32_t lzma_attribute((__always_inline__))
+lzma_attribute((__always_inline__))
+static inline uint32_t
lzma_memcmplen(const uint8_t *buf1, const uint8_t *buf2,
uint32_t len, uint32_t limit)
{