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)
Wed, Aug 12, 7:54 AM
Unknown Object (File)
Tue, Aug 11, 7:13 PM
Unknown Object (File)
Tue, Aug 11, 7:12 PM
Unknown Object (File)
Tue, Aug 11, 4:13 PM
Unknown Object (File)
Sun, Aug 9, 3:06 PM
Unknown Object (File)
Fri, Aug 7, 4:24 PM
Unknown Object (File)
Tue, Jul 28, 5:01 PM
Unknown Object (File)
Sun, Jul 26, 9:50 AM

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