summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-03-10 22:45:23 +0000
committerrillig <rillig@NetBSD.org>2022-03-10 22:45:23 +0000
commitd20a0651ed7e4919116fca0af877bf9a044627fe (patch)
treecb4a62ede6ca4e4b46e006d43f7152d002b57b2f /sys/dev/raidframe
parentf5a8fd511ebf6352a5938f9cc045c94d2da813d4 (diff)
share/misc/style: clarify enum example code
The only purpose of the enum example is to show that enum constants are written in uppercase. The previous code could be mistakenly interpreted as requiring each definition of an enum type to also define a global variable of that type, and to make the variable name the abbreviated type name. Even if the enum type were prefixed with 'typedef', choosing different names for the tag and the typedef would not be necessary. To avoid these possible misinterpretations above, remove the variable name from the declaration.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions