Make print_hostname() less AF-specific
authorkn <kn@openbsd.org>
Fri, 7 Sep 2018 10:29:22 +0000 (10:29 +0000)
committerkn <kn@openbsd.org>
Fri, 7 Sep 2018 10:29:22 +0000 (10:29 +0000)
commit7fdc021ee4c6df681ba7261bc939823142518930
tree4124567fd91e1a1ba2d74af29851c8ab120dac2b
parentfff8fe1412ad6d14cf640a7bb69aaf1d578ed980
Make print_hostname() less AF-specific

Reduce differences address families and replace strlcpy() with simpler
if/else logic as done in print_addr_str().

OK sashan
sbin/pfctl/pf_print_state.c