aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 01:56:42 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-05-26 01:56:42 +0000
commit0f829a98aa03bf5ddb3c5e0a803d49d7ed2a2249 (patch)
tree5f87cec5b1f7b60f8308c1669ef6fae8d5bbd022
parentd0f373f060aa076e25fb18966c80f523e13b97d1 (diff)
downloadbusybox-w32-0f829a98aa03bf5ddb3c5e0a803d49d7ed2a2249.tar.gz
busybox-w32-0f829a98aa03bf5ddb3c5e0a803d49d7ed2a2249.tar.bz2
busybox-w32-0f829a98aa03bf5ddb3c5e0a803d49d7ed2a2249.zip
errno and h_errno values are not the same #876 by rfelker
git-svn-id: svn://busybox.net/trunk/busybox@15178 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--libbb/inet_common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libbb/inet_common.c b/libbb/inet_common.c
index ca0ef7052..c02c732f3 100644
--- a/libbb/inet_common.c
+++ b/libbb/inet_common.c
@@ -62,7 +62,6 @@ int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
62 } 62 }
63 if (hostfirst) { 63 if (hostfirst) {
64 /* Don't try again */ 64 /* Don't try again */
65 errno = h_errno;
66 return -1; 65 return -1;
67 } 66 }
68#ifdef DEBUG 67#ifdef DEBUG
@@ -74,7 +73,6 @@ int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst)
74 bb_error_msg("gethostbyname (%s)", name); 73 bb_error_msg("gethostbyname (%s)", name);
75#endif 74#endif
76 if ((hp = gethostbyname(name)) == (struct hostent *) NULL) { 75 if ((hp = gethostbyname(name)) == (struct hostent *) NULL) {
77 errno = h_errno;
78 return -1; 76 return -1;
79 } 77 }
80 memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0], 78 memcpy((char *) &s_in->sin_addr, (char *) hp->h_addr_list[0],