1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-12-07 03:12:37 +00:00

add debug messages for initialization failures

This commit is contained in:
Yang Tse
2007-02-19 02:03:58 +00:00
parent 385e6d0eea
commit 679a675660
4 changed files with 23 additions and 2 deletions

View File

@ -224,6 +224,7 @@ static int file_lookup(union ares_addr *addr, int family, struct hostent **host)
switch(error)
{
case ENOENT:
case ESRCH:
return ARES_ENOTFOUND;
default:
DEBUGF(fprintf(stderr, "fopen() failed with error: %d %s\n",