summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-01-04 21:28:26 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-01-04 21:28:26 +0000
commit41e92b3062eb27c99690e62540c16e96a6781424 (patch)
tree4283ee68ba6cdfbb5c4f3a511085ce64bde91acf /src/core
parent8996062276c8a7528ed575b41ffea80f37aa1137 (diff)
downloadirssi-41e92b3062eb27c99690e62540c16e96a6781424.zip
the same #ifdef { parsing problem..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2296 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/network.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 32bbc13c..07dbe477 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -212,10 +212,11 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
ret = connect(handle, &so.sa, SIZEOF_SOCKADDR(so));
#ifndef WIN32
- if (ret < 0 && errno != EINPROGRESS) {
+ if (ret < 0 && errno != EINPROGRESS)
#else
- if (ret < 0 && WSAGetLastError() != WSAEWOULDBLOCK) {
+ if (ret < 0 && WSAGetLastError() != WSAEWOULDBLOCK)
#endif
+ {
close(handle);
return NULL;
}