summaryrefslogtreecommitdiffstats
path: root/generic/tclIOSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 19:35:17 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-26 19:35:17 (GMT)
commite5862e78633bfd0a5cdba1e3a3d1ecc946252243 (patch)
treec699c1280aa7ae8f302b22e883cda242daaa679a /generic/tclIOSock.c
parent8a2d92c01ec2525c1be745e4ac62a28707bfa819 (diff)
parent20211223f452acef311b0d5a2b5467cad66b4ce5 (diff)
downloadtcl-e5862e78633bfd0a5cdba1e3a3d1ecc946252243.zip
tcl-e5862e78633bfd0a5cdba1e3a3d1ecc946252243.tar.gz
tcl-e5862e78633bfd0a5cdba1e3a3d1ecc946252243.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 df7a13a..97dec06 100644
--- a/generic/tclIOSock.c
+++ b/generic/tclIOSock.c
@@ -95,16 +95,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;
}