Alexander Bluhm <alexander.bl...@gmx.net> wrote: > I think the cast to socklen_t in (socklen_t)sizeof(optval) is not > good. We should just let the compiler make its job.
true, I have a name for those, "potentially truncating casts" of course you need to determine what the types are, but that's the whole point, it is error prone