diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-18 11:00:51 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-11-18 11:00:51 (GMT) |
commit | 643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651 (patch) | |
tree | 4516c29b8072de2d732fec109a391f29c7164c8a /win | |
parent | 53a61ed82b5e860fde78796bbea75697a65203b6 (diff) | |
download | tcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.zip tcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.tar.gz tcl-643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651.tar.bz2 |
Eliminate some redundant Tcl_GetErrno() calls.
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinSock.c | 5 |
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; } |