summaryrefslogtreecommitdiffstats
path: root/generic/tclIO.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-01-15 21:19:05 (GMT)
committerdgp <dgp@noemail.net>2002-01-15 21:19:05 (GMT)
commit328999cb9dcaac2de7b3e304807abfda6e5d815a (patch)
tree0f1a58bb3c42858070ea1a2eeefac3311847898a /generic/tclIO.c
parentf7f59216c4ebbb7cf665eb6939bc60adbf9bc728 (diff)
downloadtcl-328999cb9dcaac2de7b3e304807abfda6e5d815a.zip
tcl-328999cb9dcaac2de7b3e304807abfda6e5d815a.tar.gz
tcl-328999cb9dcaac2de7b3e304807abfda6e5d815a.tar.bz2
* Updated APIs in generic/tclIOUtil.c and generic/tclPosixStr.c
according to the guidelines of TIP 27. Updated callers. [Patch 499196] FossilOrigin-Name: c606fbd2dad0ac555e745eb90871648eef4ce0db
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r--generic/tclIO.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c
index 1c12a4b..02d966b 100644
--- a/generic/tclIO.c
+++ b/generic/tclIO.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIO.c,v 1.44 2002/01/15 17:55:30 dgp Exp $
+ * RCS: @(#) $Id: tclIO.c,v 1.45 2002/01/15 21:19:07 dgp Exp $
*/
#include "tclInt.h"
@@ -2112,8 +2112,15 @@ FlushChannel(interp, chanPtr, calledFromAsyncFlush)
} else {
Tcl_SetErrno(errorCode);
if (interp != NULL) {
+
+ /*
+ * Casting away CONST here is safe because the
+ * TCL_VOLATILE flag guarantees CONST treatment
+ * of the Posix error string.
+ */
+
Tcl_SetResult(interp,
- Tcl_PosixError(interp), TCL_VOLATILE);
+ (char *) Tcl_PosixError(interp), TCL_VOLATILE);
}
}