diff options
| author | Olivier Houchard <cognet@FreeBSD.org> | 2007-11-19 21:57:28 +0000 |
|---|---|---|
| committer | Olivier Houchard <cognet@FreeBSD.org> | 2007-11-19 21:57:28 +0000 |
| commit | e93073b33de3cb67275dae9cb9811cfed9fd89e0 (patch) | |
| tree | 1dc5e6dd93c2c09ac7ef3ac7b58d8e509b45a8cd /lib | |
| parent | 2d9f60ca2597233f90f3826018e275911d128c7f (diff) | |
Notes
Diffstat (limited to 'lib')
| -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 9d45529bac01..6ceb77ffcf1e 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((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_lock((void *)&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((pthread_mutex_t *)&dirp->dd_lock); - _pthread_mutex_destroy((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_unlock((void *)&dirp->dd_lock); + _pthread_mutex_destroy((void *)&dirp->dd_lock); } free((void *)dirp); return(_close(fd)); |
