summaryrefslogtreecommitdiffstats
path: root/generic/tclIOSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 18:55:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 18:55:04 (GMT)
commitf9a41451e715d5b4ed182e21c798d7a589174f0f (patch)
treeab1ea5a11e5148bd2feaba2a2b5f4327a928de67 /generic/tclIOSock.c
parentbf7612099ad0198a051d7e2b3413531669ce0582 (diff)
downloadtcl-f9a41451e715d5b4ed182e21c798d7a589174f0f.zip
tcl-f9a41451e715d5b4ed182e21c798d7a589174f0f.tar.gz
tcl-f9a41451e715d5b4ed182e21c798d7a589174f0f.tar.bz2
fix some gcc 64-bit warnings
quoting improvements
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 1e57cc0..251780c 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.c
@@ -97,16 +97,16 @@ TclSockMinimumBuffers(sock, size)
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;
}