removed the stupid error-parameters from net_connect*() calls. errno can be

used just fine.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2889 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-08-26 19:05:14 +00:00 committed by cras
commit 13effe87e4
5 changed files with 20 additions and 30 deletions

View file

@ -187,7 +187,6 @@ static void simple_readpipe(SIMPLE_THREAD_REC *rec, GIOChannel *pipe)
RESOLVED_IP_REC iprec;
GIOChannel *handle;
IPADDR *ip;
int error;
g_return_if_fail(rec != NULL);
@ -203,7 +202,7 @@ static void simple_readpipe(SIMPLE_THREAD_REC *rec, GIOChannel *pipe)
ip = iprec.ip4.family != 0 ? &iprec.ip4 : &iprec.ip6;
handle = iprec.error == -1 ? NULL :
net_connect_ip(ip, rec->port, rec->my_ip, &error);
net_connect_ip(ip, rec->port, rec->my_ip);
g_free_not_null(rec->my_ip);