summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorericm <ericm>2000-03-27 18:34:31 (GMT)
committerericm <ericm>2000-03-27 18:34:31 (GMT)
commitf360434e70a3068aab3513ecb8bc4da680c12c38 (patch)
treefd07bd01d8beb7c201b0db3a8265a317fdee71f5 /unix/tclUnixChan.c
parent0cfa63e93a87df5a81ad82ec44fbf54c523e73c7 (diff)
downloadtcl-f360434e70a3068aab3513ecb8bc4da680c12c38.zip
tcl-f360434e70a3068aab3513ecb8bc4da680c12c38.tar.gz
tcl-f360434e70a3068aab3513ecb8bc4da680c12c38.tar.bz2
* unix/tclUnixChan.c: Added (off_t) type casts in lseek() call
[Bug: 4409]. * unix/tclLoadAout.c: * unix/tclUnixPipe.c: Added (off_t) type casts in lseek() calls [Bug: 4410].
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index 06a8a42..31204cb 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.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: tclUnixChan.c,v 1.13 2000/01/26 03:38:00 hobbs Exp $
+ * RCS: @(#) $Id: tclUnixChan.c,v 1.14 2000/03/27 18:34:32 ericm Exp $
*/
#include "tclInt.h" /* Internal definitions for Tcl. */
@@ -502,7 +502,7 @@ FileSeekProc(instanceData, offset, mode, errorCodePtr)
FileState *fsPtr = (FileState *) instanceData;
int newLoc;
- newLoc = lseek(fsPtr->fd, offset, mode);
+ newLoc = lseek(fsPtr->fd, (off_t) offset, mode);
*errorCodePtr = (newLoc == -1) ? errno : 0;
return newLoc;