diff options
author | nijtmans <nijtmans> | 2010-05-11 14:47:12 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-05-11 14:47:12 (GMT) |
commit | de40abc6da2cdfe574bf281fbaf84fa03a7f619d (patch) | |
tree | b910b870b64085996a0a4be0be3eb7bcd33ad0c4 /win/tclWinSock.c | |
parent | 4d121f611d686f514965d65ee8fc91fb882824e3 (diff) | |
download | tcl-de40abc6da2cdfe574bf281fbaf84fa03a7f619d.zip tcl-de40abc6da2cdfe574bf281fbaf84fa03a7f619d.tar.gz tcl-de40abc6da2cdfe574bf281fbaf84fa03a7f619d.tar.bz2 |
Unnecessary type casts, See Tcl [Patch #2997087]
Don't duplicate CYGWIN timezone #define from tclPort.h in tclWinPort.h
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r-- | win/tclWinSock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 63f5f0c..5734cb5 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinSock.c,v 1.71 2010/05/04 11:05:34 nijtmans Exp $ + * RCS: @(#) $Id: tclWinSock.c,v 1.72 2010/05/11 14:47:12 nijtmans Exp $ */ #include "tclWinInt.h" @@ -233,7 +233,7 @@ InitSockets(void) if (!initialized) { initialized = 1; - TclCreateLateExitHandler(SocketExitHandler, (ClientData) NULL); + TclCreateLateExitHandler(SocketExitHandler, NULL); /* * Create the async notification window with a new class. We must @@ -1296,7 +1296,7 @@ Tcl_OpenTcpClient( wsprintfA(channelName, "sock%d", infoPtr->socket); infoPtr->channel = Tcl_CreateChannel(&tcpChannelType, channelName, - (ClientData) infoPtr, (TCL_READABLE | TCL_WRITABLE)); + infoPtr, (TCL_READABLE | TCL_WRITABLE)); if (Tcl_SetChannelOption(interp, infoPtr->channel, "-translation", "auto crlf") == TCL_ERROR) { Tcl_Close((Tcl_Interp *) NULL, infoPtr->channel); @@ -1360,7 +1360,7 @@ Tcl_MakeTcpClientChannel( wsprintfA(channelName, "sock%d", infoPtr->socket); infoPtr->channel = Tcl_CreateChannel(&tcpChannelType, channelName, - (ClientData) infoPtr, (TCL_READABLE | TCL_WRITABLE)); + infoPtr, (TCL_READABLE | TCL_WRITABLE)); Tcl_SetChannelOption(NULL, infoPtr->channel, "-translation", "auto crlf"); return infoPtr->channel; } @@ -1414,7 +1414,7 @@ Tcl_OpenTcpServer( wsprintfA(channelName, "sock%d", infoPtr->socket); infoPtr->channel = Tcl_CreateChannel(&tcpChannelType, channelName, - (ClientData) infoPtr, 0); + infoPtr, 0); if (Tcl_SetChannelOption(interp, infoPtr->channel, "-eofchar", "") == TCL_ERROR) { Tcl_Close((Tcl_Interp *) NULL, infoPtr->channel); @@ -1509,7 +1509,7 @@ TcpAccept( wsprintfA(channelName, "sock%d", newInfoPtr->socket); newInfoPtr->channel = Tcl_CreateChannel(&tcpChannelType, channelName, - (ClientData) newInfoPtr, (TCL_READABLE | TCL_WRITABLE)); + newInfoPtr, (TCL_READABLE | TCL_WRITABLE)); if (Tcl_SetChannelOption(NULL, newInfoPtr->channel, "-translation", "auto crlf") == TCL_ERROR) { Tcl_Close((Tcl_Interp *) NULL, newInfoPtr->channel); @@ -2162,7 +2162,7 @@ TcpGetHandleProc( { SocketInfo *statePtr = (SocketInfo *) instanceData; - *handlePtr = (ClientData) statePtr->socket; + *handlePtr = INT2PTR(statePtr->socket); return TCL_OK; } |