]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: avoid use of fake flex arrays
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Feb 2023 20:15:52 +0000 (21:15 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 Feb 2023 11:04:16 +0000 (12:04 +0100)
commitda8587b24e64e566a68e547ff42cf44e22714bda
treef2fafa005868de3f794de3abba431412fdb7f567
parentc8b960af14f94a490ba569e7d193c73373375a58
sd-journal: avoid use of fake flex arrays

I tried to use DECLARE_FLEX_ARRAY like the kernel does, but it does not work
for anonymous structs (they cannot be declared inline), so an open-coded
version is used.
src/fundamental/macro-fundamental.h
src/libsystemd/sd-journal/journal-def.h