Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> The hunk below looks a bit evil.
> At least a comment would be good to explain why this is necessary.
Yeah, having to cast away const seems uglier than the original problem.
Can't we avoid that?
BTW, all of my machines as well as the Single Unix Spec are agreed that
the second argument to send() is "const void *", not "const char *".
If we're going to tweak this I think we should make it match exactly.
regards, tom lane