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

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;
};