Update resolv.c again to use few lines

I improve to use few lines. agora a função esta menor.