HomeFreeBSD

netlink: Don't use a zero-length array

Description

netlink: Don't use a zero-length array

Define SNL_DECLARE_FIELD_PARSER* macros to create a parser that has
no output attributes only input fields and use this to define the
snl_donemsg_parser.

This removes the need for the zero-length nla_p_donemsg[] variable.
Zero length arrays are not valid in ISO C.

Reviewed by: jrtc27, melifaro
Differential Revision: https://reviews.freebsd.org/D43918

Details

Provenance
jhbAuthored on Feb 27 2024, 7:59 PM
Reviewer
jrtc27
Differential Revision
D43918: netlink: Don't use a zero-length array
Parents
rGd1797fb5bbae: mkimg.1: add new PARTITION SPECIFICATION section
Branches
Unknown
Tags
Unknown