summaryrefslogtreecommitdiffstats
path: root/generic/tclIOSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 19:44:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 19:44:27 (GMT)
commit4be019c9996dcc2a7d6486a5bfa711636cd68f1b (patch)
tree636b0ecc08e8f37728fc57f2183f28709ea103d7 /generic/tclIOSock.c
parentf18232040af804d53027a32d7d550dcda57a7f0e (diff)
parentfbe64c30e274cc5d6d3411bb7a0c574a9331276d (diff)
downloadtcl-4be019c9996dcc2a7d6486a5bfa711636cd68f1b.zip
tcl-4be019c9996dcc2a7d6486a5bfa711636cd68f1b.tar.gz
tcl-4be019c9996dcc2a7d6486a5bfa711636cd68f1b.tar.bz2
fix some gcc 64-bit warnings
quoting improvements eliminate unused variable
Diffstat (limited to 'generic/tclIOSock.c')
-rw-r--r--generic/tclIOSock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclIOSock.c b/generic/tclIOSock.c
index ff23d5d..018f9f5 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.c
@@ -100,16 +100,16 @@ TclSockMinimumBuffers(
socklen_t len;
len = sizeof(int);
- getsockopt((SOCKET)sock, SOL_SOCKET, SO_SNDBUF, (char *)&current, &len);
+ getsockopt((SOCKET)(size_t)sock, SOL_SOCKET, SO_SNDBUF, (char *)&current, &len);
if (current < size) {
len = sizeof(int);
- setsockopt((SOCKET)sock, SOL_SOCKET, SO_SNDBUF, (char *)&size, len);
+ setsockopt((SOCKET)(size_t)sock, SOL_SOCKET, SO_SNDBUF, (char *)&size, len);
}
len = sizeof(int);
- getsockopt((SOCKET)sock, SOL_SOCKET, SO_RCVBUF, (char *)&current, &len);
+ getsockopt((SOCKET)(size_t)sock, SOL_SOCKET, SO_RCVBUF, (char *)&current, &len);
if (current < size) {
len = sizeof(int);
- setsockopt((SOCKET)sock, SOL_SOCKET, SO_RCVBUF, (char *)&size, len);
+ setsockopt((SOCKET)(size_t)sock, SOL_SOCKET, SO_RCVBUF, (char *)&size, len);
}
return TCL_OK;
}