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/telldir.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/telldir.c')
-rw-r--r-- | lib/libc/gen/telldir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/telldir.c b/lib/libc/gen/telldir.c index 77ebcbb..36e261c 100644 --- a/lib/libc/gen/telldir.c +++ b/lib/libc/gen/telldir.c @@ -64,13 +64,13 @@ telldir(dirp) if ((lp = (struct ddloc *)malloc(sizeof(struct ddloc))) == NULL) return (-1); if (__isthreaded) - _pthread_mutex_lock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_lock(&dirp->dd_lock); lp->loc_index = dirp->dd_td->td_loccnt++; lp->loc_seek = dirp->dd_seek; lp->loc_loc = dirp->dd_loc; LIST_INSERT_HEAD(&dirp->dd_td->td_locq, lp, loc_lqe); if (__isthreaded) - _pthread_mutex_unlock((pthread_mutex_t *)&dirp->dd_lock); + _pthread_mutex_unlock(&dirp->dd_lock); return (lp->loc_index); } |