Prefer getnameinfo() with NI_NUMERICHOST over inet_ntop because it is also
authorreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 10:22:30 +0000 (10:22 +0000)
committerreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 10:22:30 +0000 (10:22 +0000)
commit94eb598a9e32d39e737cd71047088efb348b0a42
tree88cc13c1d7fad9b8fb0a6d1e2eb8d48e223938fe
parentaf3cfad18a7ec8146cd99b63024913e3a7094c00
Prefer getnameinfo() with NI_NUMERICHOST over inet_ntop because it is also
aware of the IPv6 scope Id.  We already have a function print_host() that
uses getnameinfo, so no need for the inet_ntop cases. Confirmed by florian@
usr.sbin/httpd/server_http.c