summaryrefslogtreecommitdiff
path: root/lib/libpthread/stdio
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-28 16:22:32 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-28 16:22:32 +0000
commitaec6165188f2f48a79c64f88ddd79014ea5dc23f (patch)
tree4173985c77c2f2dacd27de6a3fc0b08e30b8ce59 /lib/libpthread/stdio
parentd2f41a5efa1950705d9f13b9fe6ebaaedcedeed6 (diff)
v 1.2 a different way
Diffstat (limited to 'lib/libpthread/stdio')
-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 a813892beb9..57dce109ac9 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.3 1997/02/28 16:07:30 kstailey Exp $";
+static char *rcsid = "$Id: ftell.c,v 1.4 1997/02/28 16:22:31 kstailey 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) {