aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/posix/rewinddir.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/posix/rewinddir.c')
-rw-r--r--newlib/libc/posix/rewinddir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/posix/rewinddir.c b/newlib/libc/posix/rewinddir.c
index bffad96..f9ca9f7 100644
--- a/newlib/libc/posix/rewinddir.c
+++ b/newlib/libc/posix/rewinddir.c
@@ -48,7 +48,7 @@ _DEFUN(rewinddir, (dirp),
#ifdef HAVE_DD_LOCK
__lock_acquire_recursive(dirp->dd_lock);
#endif
- _seekdir((dirp), (off_t)0);
+ _seekdir((dirp), 0L);
#ifdef HAVE_DD_LOCK
__lock_release_recursive(dirp->dd_lock);
#endif