summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-07 20:46:49 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-07 20:46:49 (GMT)
commit82a4bb8618f4a8672fd62a895fa355c1a0628b88 (patch)
tree684364d0978f635d9482f70290bddacd19db3933 /unix
parentd9033672db616bb406894a480e90410666ff4545 (diff)
downloadtcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.zip
tcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.tar.gz
tcl-82a4bb8618f4a8672fd62a895fa355c1a0628b88.tar.bz2
Deprecate TclpHasSockets(): Every system nowadays has sockets
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c27
1 files changed, 2 insertions, 25 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 4e34af5..70dfc61 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -322,29 +322,6 @@ Tcl_GetHostName(void)
/*
* ----------------------------------------------------------------------
*
- * TclpHasSockets --
- *
- * Detect if sockets are available on this platform.
- *
- * Results:
- * Returns TCL_OK.
- *
- * Side effects:
- * None.
- *
- * ----------------------------------------------------------------------
- */
-
-int
-TclpHasSockets(
- TCL_UNUSED(Tcl_Interp *))
-{
- return TCL_OK;
-}
-
-/*
- * ----------------------------------------------------------------------
- *
* TclpFinalizeSockets --
*
* Performs per-thread socket subsystem finalization.
@@ -541,7 +518,7 @@ TcpInputProc(
if (WaitForConnect(statePtr, errorCodePtr) != 0) {
return -1;
}
- bytesRead = recv(statePtr->fds.fd, buf, (size_t) bufSize, 0);
+ bytesRead = recv(statePtr->fds.fd, buf, bufSize, 0);
if (bytesRead >= 0) {
return bytesRead;
}
@@ -591,7 +568,7 @@ TcpOutputProc(
if (WaitForConnect(statePtr, errorCodePtr) != 0) {
return -1;
}
- written = send(statePtr->fds.fd, buf, (size_t) toWrite, 0);
+ written = send(statePtr->fds.fd, buf, toWrite, 0);
if (written >= 0) {
return written;