summaryrefslogtreecommitdiff
path: root/lib/libpthread/stdio/ftell.c
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-07-01 08:00:00 +0000
commit5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 (patch)
treee779b5a6edddbb949b7990751b12d6f25304ba86 /lib/libpthread/stdio/ftell.c
parenta16f65c7d117419bd266c28a1901ef129a337569 (diff)
Diffstat (limited to 'lib/libpthread/stdio/ftell.c')
-rw-r--r--lib/libpthread/stdio/ftell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/stdio/ftell.c b/lib/libpthread/stdio/ftell.c
index d19e5825ad505..bf0eb4aa17692 100644
--- a/lib/libpthread/stdio/ftell.c
+++ b/lib/libpthread/stdio/ftell.c
@@ -36,7 +36,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)ftell.c 5.4 (Berkeley) 2/5/91";*/
-static char *rcsid = "$Id: ftell.c,v 1.1 1994/01/30 04:25:01 proven Exp $";
+static char *rcsid = "$Id: ftell.c,v 1.2 1994/06/06 08:35:25 ats Exp $";
#endif /* LIBC_SCCS and not lint */
#include <pthread.h>
@@ -62,7 +62,7 @@ ftell(fp)
if (fp->_flags & __SOFF)
pos = fp->_offset;
else {
- pos = lseek(fp, (fpos_t)0, SEEK_CUR);
+ pos = lseek(fp->_file, (fpos_t)0, SEEK_CUR);
}
if (pos != -1L) {