summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-07 13:47:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-07 13:47:45 (GMT)
commitc603f00cf1e79360cab83bed72e551df8b19fe56 (patch)
tree0500c242f43a2ebe9ca990809566a7f0a650f2c5 /unix/tclUnixSock.c
parent15640f92409edd55e33844d0b7c298ebce907ca3 (diff)
parent67be0a6752a150bad176f36988e3af03f25cc4d3 (diff)
downloadtcl-c603f00cf1e79360cab83bed72e551df8b19fe56.zip
tcl-c603f00cf1e79360cab83bed72e551df8b19fe56.tar.gz
tcl-c603f00cf1e79360cab83bed72e551df8b19fe56.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r--unix/tclUnixSock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index e815d77..2361b91 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -54,8 +54,6 @@ typedef struct TcpFdList {
struct TcpState {
Tcl_Channel channel; /* Channel associated with this file. */
- int testFlags; /* bit field for tests. Is set by testsocket
- * test procedure */
TcpFdList fds; /* The file descriptors of the sockets. */
int flags; /* ORed combination of the bitfields defined
* below. */
@@ -81,6 +79,8 @@ struct TcpState {
* an async socket is not yet connected. */
int connectError; /* Cache SO_ERROR of async socket. */
int cachedBlocking; /* Cache blocking mode of async socket. */
+ int testFlags; /* bit field for tests. Is set by testsocket
+ * test procedure */
};
/*
@@ -966,8 +966,8 @@ TcpGetOptionProc(
if ((len > 1) && (optionName[1] == 'c') &&
(strncmp(optionName, "-connecting", len) == 0)) {
WaitForConnect(statePtr, NULL);
- Tcl_DStringAppend(dsPtr,
- GOT_BITS(statePtr->flags, TCP_ASYNC_CONNECT) ? "1" : "0", TCL_INDEX_NONE);
+ Tcl_DStringAppend(dsPtr,
+ GOT_BITS(statePtr->flags, TCP_ASYNC_CONNECT) ? "1" : "0", TCL_INDEX_NONE);
return TCL_OK;
}