diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-11 18:47:26 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-09-22 20:06:27 +0300 |
commit | ee7709bae53637e1765ce142ef102914f1423cb5 (patch) | |
tree | ce584379998967502aba809e8397bc37a586b1c7 /src/liblzma/common/common.h | |
parent | xz, xzdec, lzmainfo: Use tuklib_attr_noreturn. (diff) | |
download | xz-ee7709bae53637e1765ce142ef102914f1423cb5.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 'src/liblzma/common/common.h')
-rw-r--r-- | src/liblzma/common/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h index cea9f9b3..176c3a8f 100644 --- a/src/liblzma/common/common.h +++ b/src/liblzma/common/common.h @@ -297,14 +297,14 @@ struct lzma_internal_s { /// Allocates memory -extern void *lzma_alloc(size_t size, const lzma_allocator *allocator) - lzma_attr_alloc_size(1); +lzma_attr_alloc_size(1) +extern void *lzma_alloc(size_t size, const lzma_allocator *allocator); /// Allocates memory and zeroes it (like calloc()). This can be faster /// than lzma_alloc() + memzero() while being backward compatible with /// custom allocators. -extern void * lzma_attr_alloc_size(1) - lzma_alloc_zero(size_t size, const lzma_allocator *allocator); +lzma_attr_alloc_size(1) +extern void *lzma_alloc_zero(size_t size, const lzma_allocator *allocator); /// Frees memory extern void lzma_free(void *ptr, const lzma_allocator *allocator); |