summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authormax <max@tclers.tk>2012-06-26 08:05:18 (GMT)
committermax <max@tclers.tk>2012-06-26 08:05:18 (GMT)
commitbf0457f646f2d6667b2a7bc12204a152d54e25b3 (patch)
tree23048c867d271af90c3f916a04714fda3de840b3 /unix
parent6a1fc1d164f5f9d720d54ac38e05cb3cc41dca06 (diff)
downloadtcl-bf0457f646f2d6667b2a7bc12204a152d54e25b3.zip
tcl-bf0457f646f2d6667b2a7bc12204a152d54e25b3.tar.gz
tcl-bf0457f646f2d6667b2a7bc12204a152d54e25b3.tar.bz2
Use EAI_SYSTEM only if it exists.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index f6abfd5..1e9d4eb 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1117,12 +1117,7 @@ Tcl_OpenTcpClient(
freeaddrinfo(addrlist);
}
if (interp != NULL) {
- Tcl_AppendResult(interp, "couldn't open socket: ", NULL);
- if (errorMsg == NULL) {
- Tcl_AppendResult(interp, Tcl_PosixError(interp), NULL);
- } else {
- Tcl_AppendResult(interp, errorMsg, NULL);
- }
+ Tcl_AppendResult(interp, "couldn't open socket: ", errorMsg, NULL);
}
return NULL;
}