summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-18 22:30:10 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-19 16:42:19 +0200
commit99480504d47c0a6bbb1ac230cc33df12bbd36c54 (patch)
tree3efde30b90df8730e4798af13b5453f39343a170 /src/nspawn
parentalloc-util: introduce MALLOC_SIZEOF_SAFE() helper (diff)
downloadsystemd-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/nspawn')
0 files changed, 0 insertions, 0 deletions