summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-01 11:04:19 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-10-01 11:04:19 (GMT)
commit03a3a2d78e1c26683170d32685d3f4d3b9ed902d (patch)
treeb364c65de0a09b2125ba867a1ba14c257532d3d3 /unix/tclUnixChan.c
parent48e066711f2f019314605b45c4b136118d9c1b45 (diff)
downloadtcl-03a3a2d78e1c26683170d32685d3f4d3b9ed902d.zip
tcl-03a3a2d78e1c26683170d32685d3f4d3b9ed902d.tar.gz
tcl-03a3a2d78e1c26683170d32685d3f4d3b9ed902d.tar.bz2
Eliminate a few gcc compiler warnings, when using -Wwrite-strings (tested with the brand-new gcc 5.2.0)
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index a0d9811..8448b77 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -2181,7 +2181,7 @@ TcpGetOptionProc(
* We don't want to resolve INADDR_ANY; it can sometimes cause
* problems (and never has a name).
*/
-
+
hostEntPtr = NULL;
} else {
hostEntPtr = TclpGetHostByAddr( /* INTL: Native. */
@@ -2292,7 +2292,7 @@ TcpWatchProc(
* to the guarantees Tcl makes that its channels become
* writable and fire writable events on an error conditon.
* This has caused a leak of file descriptors in a state of
- * background flushing. See Tcl ticket 1758a0b603.
+ * background flushing. See Tcl ticket 1758a0b603.
*
* As a workaround, when our caller indicates an interest in
* writable notifications, we must tell the notifier built
@@ -2303,7 +2303,7 @@ TcpWatchProc(
* channel states and report the chan events as best it can.
* We save a copy of the mask passed in to assist with that.
*/
-
+
statePtr->interest = mask;
Tcl_CreateFileHandler(statePtr->fd, mask|TCL_READABLE,
(Tcl_FileProc *) WrapNotify, (ClientData) statePtr);
@@ -2927,7 +2927,7 @@ TclpGetDefaultStdChannel(
Tcl_Channel channel = NULL;
int fd = 0; /* Initializations needed to prevent */
int mode = 0; /* compiler warning (used before set). */
- char *bufMode = NULL;
+ const char *bufMode = NULL;
/*
* Some #def's to make the code a little clearer!
@@ -3216,7 +3216,7 @@ TclUnixWaitForFile(
if (FD_ISSET(fd, &writableMask)) {
SET_BITS(result, TCL_WRITABLE);
}
- if (FD_ISSET(fd, &exceptionalMask)) {
+ if (FD_ISSET(fd, &exceptionalMask)) {
SET_BITS(result, TCL_EXCEPTION);
}
result &= mask;