if inet_ntop() is available, use it for IPv4 addresses as well
Support for using inet_ntop()
was originally added to support IPv6,
and only used for IPv6 addresses in PrintHOST()
. Two decades later,
support for inet_ntop()
is ubiquitous and OS'es have marked inet_ntoa()
as deprecated, so use the modern interface for IPv4 as well now.