diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-10-12 14:38:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-10-12 14:38:09 (GMT) |
commit | ea1d0bdda1fbfe0bcdd1b2d0d1cfb6684670693c (patch) | |
tree | 5bfb2720ea26482a2bdb310e3caedcbc98a0123c /unix | |
parent | 76c89fce6cae52d0fbdbba1ff0c412f73e7985e9 (diff) | |
download | tcl-ea1d0bdda1fbfe0bcdd1b2d0d1cfb6684670693c.zip tcl-ea1d0bdda1fbfe0bcdd1b2d0d1cfb6684670693c.tar.gz tcl-ea1d0bdda1fbfe0bcdd1b2d0d1cfb6684670693c.tar.bz2 |
Fix [bf899d6d6d]: tclUnixSock.c: remove unnecessary cast
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixSock.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 6ca1293..441f75b 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -138,7 +138,7 @@ static int TcpOutputProc(void *instanceData, static void TcpThreadActionProc(void *instanceData, int action); static void TcpWatchProc(void *instanceData, int mask); static int WaitForConnect(TcpState *statePtr, int *errorCodePtr); -static void WrapNotify(void *clientData, int mask); +static Tcl_FileProc WrapNotify; /* * This structure describes the channel type structure for TCP socket @@ -564,7 +564,7 @@ TcpOutputProc( if (WaitForConnect(statePtr, errorCodePtr) != 0) { return -1; } - written = send(statePtr->fds.fd, buf, (size_t) toWrite, 0); + written = send(statePtr->fds.fd, buf, toWrite, 0); if (written >= 0) { return written; @@ -807,7 +807,7 @@ TcpHostPortList( static int TcpGetOptionProc( - void *instanceData, /* Socket state. */ + void *instanceData, /* Socket state. */ Tcl_Interp *interp, /* For error reporting - can be NULL. */ const char *optionName, /* Name of the option to retrieve the value * for, or NULL to get all options and their @@ -909,8 +909,8 @@ TcpGetOptionProc( if ((len == 0) || ((len > 1) && (optionName[1] == 's') && (strncmp(optionName, "-sockname", len) == 0))) { TcpFdList *fds; - address sockname; - socklen_t size; + address sockname; + socklen_t size; int found = 0; if (len == 0) { @@ -1093,10 +1093,10 @@ TcpWatchProc( */ statePtr->interest = mask; - Tcl_CreateFileHandler(statePtr->fds.fd, mask|TCL_READABLE, - (Tcl_FileProc *) WrapNotify, statePtr); + Tcl_CreateFileHandler(statePtr->fds.fd, mask|TCL_READABLE, + WrapNotify, statePtr); } else { - Tcl_DeleteFileHandler(statePtr->fds.fd); + Tcl_DeleteFileHandler(statePtr->fds.fd); } } |