diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-12 02:33:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-12 13:35:32 +0100 |
commit | 257224b0cdbb5ae1ac463a6a6645e033882b967e (patch) | |
tree | 5c388e213f15f71ee552e892cb7befc6377d1723 /src | |
parent | ae6c3cc009a21df4b51851fb8fe3fde0b7d6d8f0 (diff) |
util: document why we have alloca_align()
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index a15ce95a65..9a878ca1ac 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -883,6 +883,7 @@ int unlink_noerrno(const char *path); (void *) memset(_new_, 0, _len_); \ }) +/* It's not clear what alignment glibc/gcc alloca() guarantee, hence provide a guaranteed safe version */ #define alloca_align(size, align) \ ({ \ void *_ptr_; \ |