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/libsystemd-network/sd-dhcp-lease.c | |
parent | 6df28e1f847d68ad37ffe3f4ff47745b55233861 (diff) | |
download | systemd-99480504d47c0a6bbb1ac230cc33df12bbd36c54.tar.gz |
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/libsystemd-network/sd-dhcp-lease.c')
0 files changed, 0 insertions, 0 deletions