summaryrefslogtreecommitdiffstats
path: root/generic
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)
commitfbe64c30e274cc5d6d3411bb7a0c574a9331276d (patch)
treec699c1280aa7ae8f302b22e883cda242daaa679a /generic
parent5537e62301b5a43914709690bbe199684082b049 (diff)
parentf9a41451e715d5b4ed182e21c798d7a589174f0f (diff)
downloadtcl-fbe64c30e274cc5d6d3411bb7a0c574a9331276d.zip
tcl-fbe64c30e274cc5d6d3411bb7a0c574a9331276d.tar.gz
tcl-fbe64c30e274cc5d6d3411bb7a0c574a9331276d.tar.bz2
fix some gcc 64-bit warnings
quoting improvements eliminate unused variable
Diffstat (limited to 'generic')
-rw-r--r--generic/tclIOSock.c8
-rw-r--r--generic/tclPathObj.c3
2 files changed, 4 insertions, 7 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;
}
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index 4e1172a..2e91922 100644
--- a/generic/tclPathObj.c
+++ b/generic/tclPathObj.c
@@ -1266,7 +1266,6 @@ TclNewFSPathObj(
{
FsPath *fsPathPtr;
Tcl_Obj *pathPtr;
- ThreadSpecificData *tsdPtr;
const char *p;
int state = 0, count = 0;
@@ -1294,8 +1293,6 @@ TclNewFSPathObj(
return pathPtr;
}
- tsdPtr = TCL_TSD_INIT(&tclFsDataKey);
-
pathPtr = Tcl_NewObj();
fsPathPtr = (FsPath *) ckalloc(sizeof(FsPath));