Simplify address family handling, ditch inet_ntop(3)
authorkn <kn@openbsd.org>
Sat, 13 Nov 2021 17:49:40 +0000 (17:49 +0000)
committerkn <kn@openbsd.org>
Sat, 13 Nov 2021 17:49:40 +0000 (17:49 +0000)
commit9be8707c2ccac49204db08519081b31c12523810
tree965e59e0b685f21daada0e6a6bf2356b175363a9
parent162e527e34669633ca092d8a9401761fef792a68
Simplify address family handling, ditch inet_ntop(3)

Reduce duplicate code, use getnameinfo(3) for IPv4 as well and use
gai_strerror(3) in case of failure.

This was split out as part of the previous IPv6-LL fix.
sbin/resolvd/resolvd.c