diff options
author | dgp <dgp@users.sourceforge.net> | 2002-01-15 21:19:06 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-01-15 21:19:06 (GMT) |
commit | 1f65844631f74a8dfd9e7ed208564f50f401b3c9 (patch) | |
tree | 0f1a58bb3c42858070ea1a2eeefac3311847898a /generic/tclIO.c | |
parent | 568095bebd17af34916de0d4f2d5eb631a98d876 (diff) | |
download | tcl-1f65844631f74a8dfd9e7ed208564f50f401b3c9.zip tcl-1f65844631f74a8dfd9e7ed208564f50f401b3c9.tar.gz tcl-1f65844631f74a8dfd9e7ed208564f50f401b3c9.tar.bz2 |
* Updated APIs in generic/tclIOUtil.c and generic/tclPosixStr.c
according to the guidelines of TIP 27. Updated callers. [Patch 499196]
Diffstat (limited to 'generic/tclIO.c')
-rw-r--r-- | generic/tclIO.c | 11 |
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); } } |