diff options
author | cognet <cognet@FreeBSD.org> | 2007-11-19 21:57:28 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2007-11-19 21:57:28 +0000 |
commit | c3152c59dc162632178ef8ed100db387cbea9472 (patch) | |
tree | 1dc5e6dd93c2c09ac7ef3ac7b58d8e509b45a8cd /lib | |
parent | 23501674518a8954051b2bab17483baf2f2927c9 (diff) | |
download | FreeBSD-src-c3152c59dc162632178ef8ed100db387cbea9472.zip FreeBSD-src-c3152c59dc162632178ef8ed100db387cbea9472.tar.gz |
Change the casts from (pthread_mutex_t *) to (void *) to keep gcc quiet.
Anybody with a cleaner solution feel free to change it.
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 9d45529..6ceb77f 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)); |