summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-lease.c
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/libsystemd-network/sd-dhcp-lease.c
parent6df28e1f847d68ad37ffe3f4ff47745b55233861 (diff)
downloadsystemd-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