diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-20 10:31:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-20 10:48:33 +0100 |
commit | d4b604baeadbb2498e4f2c3e260260eed210f5d6 (patch) | |
tree | 65f19bca6856ee4f96320eda5e4e473baa803406 /src/basic/alloc-util.h | |
parent | 23964f7faf86df7fd297dc5b0a9f1dfb03a0eb56 (diff) | |
download | systemd-d4b604baeadbb2498e4f2c3e260260eed210f5d6.tar.gz |
alloc-util: use malloc_usable_size() to determine allocated size
It's a glibc-specific API, but supported on FreeBSD and musl too at
least, hence fairly common. This way we can reduce our calls to
realloc() as much as possible.
Diffstat (limited to 'src/basic/alloc-util.h')
0 files changed, 0 insertions, 0 deletions