mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Some signed/unsigned warnings removed. Don't call fe_exec_init/deinit in win32
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1104 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
348060073d
commit
1a3c700838
7 changed files with 19 additions and 11 deletions
|
|
@ -180,7 +180,11 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
|
|||
sin_set_port(&so, port);
|
||||
ret = connect(handle, &so.sa, SIZEOF_SOCKADDR(so));
|
||||
|
||||
#ifndef WIN32
|
||||
if (ret < 0 && errno != EINPROGRESS) {
|
||||
#else
|
||||
if (ret < 0 && WSAGetLastError() != WSAEWOULDBLOCK) {
|
||||
#endif
|
||||
close(handle);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue