summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorericm <ericm@noemail.net>2000-03-27 18:34:30 (GMT)
committerericm <ericm@noemail.net>2000-03-27 18:34:30 (GMT)
commit53a68b7b8886381864831080f9866f5ceede9d37 (patch)
treefd07bd01d8beb7c201b0db3a8265a317fdee71f5 /unix/tclUnixChan.c
parent6a5bfe5d582b9681c3e1775c13396f5b873d7692 (diff)
downloadtcl-53a68b7b8886381864831080f9866f5ceede9d37.zip
tcl-53a68b7b8886381864831080f9866f5ceede9d37.tar.gz
tcl-53a68b7b8886381864831080f9866f5ceede9d37.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]. FossilOrigin-Name: 30a242b059029eb7c6e354ef874565872499766c
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;