diff options
Diffstat (limited to 'libports/bucket-iterate.c')
-rw-r--r-- | libports/bucket-iterate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libports/bucket-iterate.c b/libports/bucket-iterate.c index e439cb19..dc1c7b11 100644 --- a/libports/bucket-iterate.c +++ b/libports/bucket-iterate.c @@ -19,7 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "ports.h" -#include <cthreads.h> #include <hurd/ihash.h> @@ -40,7 +39,7 @@ _ports_bucket_class_iterate (struct port_bucket *bucket, struct item *i, *nxt; error_t err; - mutex_lock (&_ports_lock); + pthread_mutex_lock (&_ports_lock); HURD_IHASH_ITERATE (&bucket->htable, arg) { struct port_info *const pi = arg; @@ -55,7 +54,7 @@ _ports_bucket_class_iterate (struct port_bucket *bucket, pi->refcnt++; } } - mutex_unlock (&_ports_lock); + pthread_mutex_unlock (&_ports_lock); err = 0; for (i = list; i; i = nxt) |