refactor name_from_dns in hostname lookup backend
authorNatanael Copa <ncopa@alpinelinux.org>
Wed, 15 Jun 2016 18:27:46 +0000 (20:27 +0200)
committerRich Felker <dalias@aerifal.cx>
Wed, 29 Jun 2016 15:59:25 +0000 (11:59 -0400)
commit4adc6c33e769e647b6fe73752f727c58d09e4e53
tree65aa06cef6bb2f10d2dfb973e5fdd4581cb3d69b
parent04bced403dead13d20a46a1bd00ab1eb2c50b882
refactor name_from_dns in hostname lookup backend

loop over an address family / resource record mapping to avoid
repetitive code.
src/network/lookup_name.c