]> git.ipfire.org Git - thirdparty/collectd.git/commit
procevent plugin: remove use of a nested flexible array member.
authorFlorian Forster <octo@collectd.org>
Tue, 28 Nov 2023 18:31:11 +0000 (19:31 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 29 Nov 2023 09:03:20 +0000 (10:03 +0100)
commite2ddfad435a8bb833307d0f306500ccb5b924a55
tree3100546b63f38036f235eb4923a9ea0d4581413b
parent01a709d689002ec35b56ae9d44000772c1f7944e
procevent plugin: remove use of a nested flexible array member.

The previous code used an ad-hoc struct to construct or parse a Netlink
message. This relied on allocating a field _after_ the struct with the
flexible array member, which is prohibited by the C standard, leading to
compiler warnings.
src/procevent.c