Change the casts from (pthread_mutex_t *) to (void *) to keep gcc quiet.
Anybody with a cleaner solution feel free to change it.
This commit is contained in:
parent
2d9f60ca25
commit
e93073b33d
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user