Use clearer notation for getnameinfo() return handling
Writing
if (getnameinfo(...))
handle_error();
reads quite strangely, so use something like
if (getnameinfo(...) != 0)
handle_error();
instead.
Showing
Please register or sign in to comment