aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/posix
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-07-06 15:23:27 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-07-06 15:23:27 +0000
commitefc428827bd2f9e254d08be2b7a24f65fac2731a (patch)
tree0fa0f033ee5074a6f74983e5b253ec66b650a8b0 /newlib/libc/posix
parent41ee3188d725d05c75654b04f64a62b7bb498ef8 (diff)
downloadnewlib-efc428827bd2f9e254d08be2b7a24f65fac2731a.zip
newlib-efc428827bd2f9e254d08be2b7a24f65fac2731a.tar.gz
newlib-efc428827bd2f9e254d08be2b7a24f65fac2731a.tar.bz2
* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
* libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype. * libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long rather than off_t.
Diffstat (limited to 'newlib/libc/posix')
-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