diff options
author | ericm <ericm@noemail.net> | 2000-03-27 18:34:30 (GMT) |
---|---|---|
committer | ericm <ericm@noemail.net> | 2000-03-27 18:34:30 (GMT) |
commit | 53a68b7b8886381864831080f9866f5ceede9d37 (patch) | |
tree | fd07bd01d8beb7c201b0db3a8265a317fdee71f5 /unix/tclUnixPipe.c | |
parent | 6a5bfe5d582b9681c3e1775c13396f5b873d7692 (diff) | |
download | tcl-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/tclUnixPipe.c')
-rw-r--r-- | unix/tclUnixPipe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c index 0e26414..91c497d 100644 --- a/unix/tclUnixPipe.c +++ b/unix/tclUnixPipe.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: tclUnixPipe.c,v 1.7 1999/12/12 02:27:20 hobbs Exp $ + * RCS: @(#) $Id: tclUnixPipe.c,v 1.8 2000/03/27 18:34:32 ericm Exp $ */ #include "tclInt.h" @@ -147,7 +147,7 @@ TclpOpenFile(fname, mode) */ if (mode & O_WRONLY) { - lseek(fd, 0, SEEK_END); + lseek(fd, (off_t) 0, SEEK_END); } /* @@ -198,7 +198,7 @@ TclpCreateTempFile(contents) close(fd); return NULL; } - lseek(fd, 0, SEEK_SET); + lseek(fd, (off_t) 0, SEEK_SET); } return MakeFile(fd); } |