Update resolv.c again to use few lines

I improve to use few lines. agora a função esta menor.
Merge pull request #3 from CoolerVoid/patch-1

Update resolv.c again to use few lines