src/lib/util.c: introduce/use get_addr_family()

Make the code more readable in a couple of places.

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
3 files changed