summaryrefslogtreecommitdiff
path: root/sysdeps/unix/telldir.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/telldir.c')
-rw-r--r--sysdeps/unix/telldir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/telldir.c b/sysdeps/unix/telldir.c
index 2b611b0fca..c319d71df7 100644
--- a/sysdeps/unix/telldir.c
+++ b/sysdeps/unix/telldir.c
@@ -36,8 +36,8 @@ DEFUN(telldir, (dirp), DIR *dirp)
return (off_t) -1;
}
- pos = __lseek(dirp->__fd, (off_t) 0, SEEK_CUR);
+ pos = __lseek(dirp->fd, (off_t) 0, SEEK_CUR);
if (pos == (off_t) -1)
return (off_t) -1;
- return pos + dirp->__size - dirp->__offset;
+ return pos + dirp->size - dirp->offset;
}