summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-04 09:05:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-04-04 09:05:51 (GMT)
commit10d62422b2a9cd29828f3d750f8253076ba0cf3f (patch)
tree65cab1f3b3d6a018af1926ded98137478d1bd3c1 /win/tclWinSock.c
parent60cfc1cbac7cd027431546b2a5d260d25ee1a502 (diff)
parent5cc8272056a2950e552b579f4717b123a9578bdc (diff)
downloadtcl-10d62422b2a9cd29828f3d750f8253076ba0cf3f.zip
tcl-10d62422b2a9cd29828f3d750f8253076ba0cf3f.tar.gz
tcl-10d62422b2a9cd29828f3d750f8253076ba0cf3f.tar.bz2
[Bug 510001]: TclSockMinimumBuffers needs plat imp
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 2973db1..019d8e9 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -968,7 +968,7 @@ CreateSocket(
* Set kernel space buffering
*/
- TclSockMinimumBuffers((int) sock, TCP_BUFFER_SIZE);
+ TclSockMinimumBuffers((void *)sock, TCP_BUFFER_SIZE);
if (server) {
/*
@@ -1326,7 +1326,7 @@ Tcl_MakeTcpClientChannel(
* Set kernel space buffering and non-blocking.
*/
- TclSockMinimumBuffers(PTR2INT(sock), TCP_BUFFER_SIZE);
+ TclSockMinimumBuffers(sock, TCP_BUFFER_SIZE);
infoPtr = NewSocketInfo((SOCKET) sock);
@@ -2479,12 +2479,8 @@ InitializeHostName(
*/
int
-TclWinGetSockOpt(
- SOCKET s,
- int level,
- int optname,
- char * optval,
- int FAR *optlen)
+TclWinGetSockOpt(SOCKET s, int level, int optname, char *optval,
+ int *optlen)
{
/*
* Check that WinSock is initialized; do not call it if not, to prevent
@@ -2500,11 +2496,7 @@ TclWinGetSockOpt(
}
int
-TclWinSetSockOpt(
- SOCKET s,
- int level,
- int optname,
- const char * optval,
+TclWinSetSockOpt(SOCKET s, int level, int optname, const char *optval,
int optlen)
{
/*