]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
db_command.c: use designated initializers
authorMitchell Horne <mhorne@FreeBSD.org>
Tue, 5 Jul 2022 14:45:47 +0000 (11:45 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Thu, 11 Aug 2022 14:22:26 +0000 (11:22 -0300)
commit742622502ec0f29e0bea4ee36cefd18fae144a58
tree3b742d29c1441a4745caada1394c88d0cb082571
parente4f615b3e0f564df1dee5b8bc6cd40259bd4c156
db_command.c: use designated initializers

Provide separate helper macros for regular commands and next-level table
commands as they are mutually exclusive. This ensures proper
initialization of each element and allows us to exclude some redundant
fields, such as specifying .more = NULL for every regular command.

Reviewed by: markj, jhb
MFC after: 3 days
Sponsored by: Juniper Networks, Inc.
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D35580

(cherry picked from commit 8a0994823365740f4d92842c2d6f7f524310ba64)
sys/ddb/db_command.c