]> git.ipfire.org Git - thirdparty/man-pages.git/commit
_Generic.3: Remove example code
authorAlejandro Colomar <alx@kernel.org>
Sun, 12 Feb 2023 19:32:41 +0000 (20:32 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 12 Feb 2023 19:32:42 +0000 (20:32 +0100)
commit5cb85d44934c92e5fc0b928f3627bed6f285793d
treef07c20d2cd2a576e2cc389d2d84500564615a66a
parent629aeb166631adbcba01f88ad563e842f046954d
_Generic.3: Remove example code

Casting sockaddr structures is just a symptom that these APIs were
seriously misdesigned.  In GNU C, there's already a better way to handle
this (see [[gnu::transparent_union]]).  ISO C should be fixed.  Let's
not promote this kind of code.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
man3/_Generic.3