Page MenuHomeFreeBSD

db_command.c: use designated initializers
ClosedPublic

Authored by mhorne on Jun 23 2022, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 12, 5:36 AM
Unknown Object (File)
Fri, Jun 12, 5:34 AM
Unknown Object (File)
May 23 2026, 8:06 PM
Unknown Object (File)
May 23 2026, 4:34 AM
Unknown Object (File)
May 13 2026, 10:14 PM
Unknown Object (File)
May 13 2026, 10:14 PM
Unknown Object (File)
May 13 2026, 10:08 PM
Unknown Object (File)
May 3 2026, 6:46 PM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable