diff options
author | ericm <ericm> | 2000-03-27 18:34:31 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-03-27 18:34:31 (GMT) |
commit | f360434e70a3068aab3513ecb8bc4da680c12c38 (patch) | |
tree | fd07bd01d8beb7c201b0db3a8265a317fdee71f5 /unix/tclUnixPipe.c | |
parent | 0cfa63e93a87df5a81ad82ec44fbf54c523e73c7 (diff) | |
download | tcl-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/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); } |