Merge "Update getnameinfo.c, remove dead code, and fix error reporting."