From 160bdc0555d34a6f2792d6cc63f48503a54923d4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 3 Dec 1993 02:41:17 +0000 Subject: Formerly get_conch.c.~2~ --- libiohelp/get_conch.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libiohelp/get_conch.c') diff --git a/libiohelp/get_conch.c b/libiohelp/get_conch.c index 4e2467b6..779ec2c2 100644 --- a/libiohelp/get_conch.c +++ b/libiohelp/get_conch.c @@ -18,10 +18,11 @@ #include /* The conch must be locked when calling this routine. */ +/* Remove any current holder of the conch. */ error_t _libioserver_internal_get_conch (struct conch *c) { - struct shared *user_sh; + struct shared_io *user_sh; int error = 0; again: @@ -37,7 +38,7 @@ _libioserver_internal_get_conch (struct conch *c) /* fall through ... */ case USER_RELEASE_CONCH: spin_unlock (&user_sh->lock); - condition_wait (&c->wait, &c->lock); + condition_wait (&c->wait, c->lock); /* Anything can have happened */ goto again; -- cgit v1.2.3