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/closedir.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/closedir.c')
-rw-r--r-- | lib/libc/gen/closedir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/closedir.c b/lib/libc/gen/closedir.c index 6ceb77f..44e2bdf 100644 --- a/lib/libc/gen/closedir.c +++ b/lib/libc/gen/closedir.c @@ -54,7 +54,7 @@ closedir(dirp) int fd; if (__isthreaded) - _pthread_mutex_lock((void *)&dirp->dd_lock); + _pthread_mutex_lock(&dirp->dd_lock); _seekdir(dirp, dirp->dd_rewind); /* free seekdir storage */ fd = dirp->dd_fd; dirp->dd_fd = -1; @@ -62,8 +62,8 @@ closedir(dirp) free((void *)dirp->dd_buf); _reclaim_telldir(dirp); if (__isthreaded) { - _pthread_mutex_unlock((void *)&dirp->dd_lock); - _pthread_mutex_destroy((void *)&dirp->dd_lock); + _pthread_mutex_unlock(&dirp->dd_lock); + _pthread_mutex_destroy(&dirp->dd_lock); } free((void *)dirp); return(_close(fd)); |