diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-18 22:30:10 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-05-19 16:42:19 +0200 |
commit | 99480504d47c0a6bbb1ac230cc33df12bbd36c54 (patch) | |
tree | 3efde30b90df8730e4798af13b5453f39343a170 /src/shared/daemon-util.h | |
parent | alloc-util: introduce MALLOC_SIZEOF_SAFE() helper (diff) | |
download | systemd-99480504d47c0a6bbb1ac230cc33df12bbd36c54.tar.xz systemd-99480504d47c0a6bbb1ac230cc33df12bbd36c54.zip |
alloc-util: add MALLOC_ELEMENTSOF() helper
This is a wrapper around malloc_usable_size() but is typesafe, and
divides by the element size.
A test it is also added ensuring what it does it does correcly.
Diffstat (limited to 'src/shared/daemon-util.h')
0 files changed, 0 insertions, 0 deletions