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)
Sun, Jul 12, 8:23 PM
Unknown Object (File)
Sat, Jul 4, 10:39 PM
Unknown Object (File)
Sat, Jul 4, 8:44 AM
Unknown Object (File)
Jun 12 2026, 5:36 AM
Unknown Object (File)
Jun 12 2026, 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

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