hostname: unify IPv4/IPv6 codepaths
Use inet_ntop everywhere so that we only have one code path between IPv4 and IPv6. This also fixes some alignment warnings (due to gethostname returning char* pointers which we then cast up to in_addr structs). URL: https://bugs.gentoo.org/558436
Showing
Please register or sign in to comment