summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-18 11:00:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-18 11:00:51 (GMT)
commit643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651 (patch)
tree4516c29b8072de2d732fec109a391f29c7164c8a /win/tclWinSock.c
parent53a61ed82b5e860fde78796bbea75697a65203b6 (diff)
downloadtcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.zip
tcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.tar.gz
tcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.tar.bz2
Eliminate some redundant Tcl_GetErrno() calls.
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 00df85f..5ac8f47 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -1317,8 +1317,9 @@ CreateSocket(
if (connect(sock, addrPtr->ai_addr, addrPtr->ai_addrlen)
== SOCKET_ERROR) {
- TclWinConvertError((DWORD) WSAGetLastError());
- if (Tcl_GetErrno() != EWOULDBLOCK) {
+ DWORD error = (DWORD) WSAGetLastError();
+ if (error != WSAEWOULDBLOCK) {
+ TclWinConvertError(error);
goto looperror;
}