diff options
author | des <des@FreeBSD.org> | 2007-12-03 14:33:51 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-12-03 14:33:51 +0000 |
commit | e6b288244282be37d08070caa0e7994d653c86b4 (patch) | |
tree | 780616156e99a487fe4e1d8b60a8f91c64f872a1 /lib/libc/gen/readdir.c | |
parent | b629c0784657ec75bd6bcbe2646a764db30e9cf3 (diff) | |
download | FreeBSD-src-e6b288244282be37d08070caa0e7994d653c86b4.zip FreeBSD-src-e6b288244282be37d08070caa0e7994d653c86b4.tar.gz |
Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are no
longer required.
Diffstat (limited to 'lib/libc/gen/readdir.c')
-rw-r--r-- | lib/libc/gen/readdir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/readdir.c b/lib/libc/gen/readdir.c index 8bdc6ce..fd52067 100644 --- a/lib/libc/gen/readdir.c +++ b/lib/libc/gen/readdir.c @@ -87,9 +87,9 @@ readdir(dirp) struct dirent *dp; if (__isthreaded) { - _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_lock(&dirp->dd_lock); dp = _readdir_unlocked(dirp); - _pthread_mutex_unlock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_unlock(&dirp->dd_lock); } else dp = _readdir_unlocked(dirp); @@ -108,10 +108,10 @@ readdir_r(dirp, entry, result) saved_errno = errno; errno = 0; if (__isthreaded) { - _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_lock(&dirp->dd_lock); if ((dp = _readdir_unlocked(dirp)) != NULL) memcpy(entry, dp, _GENERIC_DIRSIZ(dp)); - _pthread_mutex_unlock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_unlock(&dirp->dd_lock); } else if ((dp = _readdir_unlocked(dirp)) != NULL) memcpy(entry, dp, _GENERIC_DIRSIZ(dp)); |