Skip to content

Commit

Permalink
Change kibitz to a better kibitz.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63928 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
wrowe committed Oct 15, 2002
1 parent 5b25182 commit 95b38b3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion network_io/unix/sa_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,20 @@ static apr_status_t find_addresses(apr_sockaddr_t **sa,
#ifdef WIN32
return apr_get_netos_error();
#else
return (h_errno + APR_OS_START_SYSERR);
switch (h_errno) {
#ifdef NETDB_INTERNAL
NETDB_INTERNAL:
return APR_FROM_OS_ERROR(errno);
HOST_NOT_FOUND:
return APR_EHOSTUNREACH;
NO_DATA:
return APR_E;
NO_RECOVERY:
return APR_EHOSTUNREACH;
TRY_AGAIN:
return APR_EAGAIN;
}
/* return (h_errno + APR_OS_START_SYSERR); */
#endif
}
}
Expand Down

0 comments on commit 95b38b3

Please sign in to comment.