Fix style and clarify comment

Fix code style in proc.h and clarify comment about empty structs.
This commit is contained in:
Leandro Lupori 2019-08-12 19:44:57 +00:00
parent 4e8872c800
commit 26b6a67b98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=350953

View File

@ -46,9 +46,8 @@ struct mdthread {
};
struct mdproc {
/* Avoid empty structs, that have undefined behavior in C99 and
* make compilers complain about it
* (empty struct has size 0 in C, size 1 in C++).
/*
* Avoid empty structs because they are undefined behavior.
*/
long md_spare;
};