summaryrefslogtreecommitdiff
path: root/libhurd-cap/cap-user.c
diff options
context:
space:
mode:
authormarcus <marcus>2004-03-16 03:38:05 +0000
committermarcus <marcus>2004-03-16 03:38:05 +0000
commitc47efabcdd0f9ddf3c2d70b864eb34a19782e529 (patch)
tree570273e380dc718c9d766cdcfa43608b5b039421 /libhurd-cap/cap-user.c
parentb96e7b2fed320430cf971bd4550ff8f74d51eb23 (diff)
Some fixes for the libl4 rewrite.
Diffstat (limited to 'libhurd-cap/cap-user.c')
-rw-r--r--libhurd-cap/cap-user.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libhurd-cap/cap-user.c b/libhurd-cap/cap-user.c
index aeecd86..593d5b4 100644
--- a/libhurd-cap/cap-user.c
+++ b/libhurd-cap/cap-user.c
@@ -28,6 +28,7 @@
#include <assert.h>
#include <errno.h>
#include <stdint.h>
+#include <l4/thread.h>
#include <hurd/cap.h>
@@ -74,7 +75,7 @@ _hurd_cap_sconn_dealloc (hurd_cap_sconn_t sconn)
}
/* Now we can remove the object. */
- hurd_ihash_remove (&server_to_sconn, sconn->server_thread.raw);
+ hurd_ihash_remove (&server_to_sconn, sconn->server_thread);
pthread_mutex_unlock (&server_to_sconn_lock);
/* Finally, we can destroy it. */
@@ -129,7 +130,7 @@ _hurd_cap_sconn_enter (hurd_cap_sconn_t sconn_provided,
{
/* It might have become available by now. */
pthread_mutex_lock (&server_to_sconn_lock);
- sconn = hurd_ihash_find (&server_to_sconn, server_thread.raw);
+ sconn = hurd_ihash_find (&server_to_sconn, server_thread);
if (sconn)
hurd_cap_deallocate (server_task_info);
else
@@ -158,7 +159,7 @@ _hurd_cap_sconn_enter (hurd_cap_sconn_t sconn_provided,
sconn->refs = 0;
/* Enter the new server connection object. */
- err = hurd_ihash_add (&server_to_sconn, server_thread.raw, sconn);
+ err = hurd_ihash_add (&server_to_sconn, server_thread, sconn);
if (err)
{
pthread_mutex_destroy (&sconn->lock);