src/lib/internet.c 1.11
1.11 2010/03/11 17:54:35 angie
Taking untranslated h_errno out of warning message -- IMO it adds confusion instead of clarification when 99.99999% of the time, the problem is a typo in host name. man h_errno says that herror and hstrerror are obsolete, bummer.
Index: src/lib/internet.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/internet.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/lib/internet.c 10 Apr 2005 14:41:23 -0000 1.10
+++ src/lib/internet.c 11 Mar 2010 17:54:35 -0000 1.11
@@ -37,9 +37,9 @@
{
hostent = gethostbyname(hostName);
if (hostent == NULL)
{
- warn("Couldn't find host %s. h_errno %d", hostName, h_errno);
+ warn("Couldn't find host %s.", hostName);
return 0;
}
memcpy(&ret, hostent->h_addr_list[0], sizeof(ret));
ret = ntohl(ret);