Removed some old backwards compatibility code.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2411 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-02-10 11:04:08 +00:00 committed by cras
commit 9575eecb39
5 changed files with 3 additions and 37 deletions

View file

@ -414,7 +414,9 @@ int net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
return count > 0 ? 0 : 1;
#else
hp = gethostbyname(addr);
if (hp == NULL) return h_errno;
if (hp == NULL)
return -1;
//return h_errno;
ip4->family = AF_INET;
memcpy(&ip4->ip, hp->h_addr, 4);