[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Apply slab interface changes to cap.c
From: |
Daniel Wagner |
Subject: |
[PATCH] Apply slab interface changes to cap.c |
Date: |
Thu, 23 Oct 2003 13:57:45 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) |
Hi,
I had to change some lines for getting the libhurd-cap directory compiled.
There is no ChangeLog file for this directory, so I skip the ChangeLog
entry :)
cheers,
daniel
Index: cap.c
===================================================================
RCS file: /cvsroot/hurd/hurd-l4/libhurd-cap/cap.c,v
retrieving revision 1.5
diff -u -p -r1.5 cap.c
--- cap.c 17 Sep 2003 15:12:22 -0000 1.5
+++ cap.c 23 Oct 2003 10:51:39 -0000
@@ -40,7 +40,7 @@ hurd_slab_space_t cap_space;
/* Initialize a new capability, allocated by the slab allocator. */
static error_t
-cap_constructor (void *buffer)
+cap_constructor (void *hook, void *buffer)
{
hurd_cap_t cap = (hurd_cap_t) buffer;
error_t err;
@@ -60,7 +60,7 @@ cap_constructor (void *buffer)
/* Release all resources allocated by the capability, which is in its
freshly initialized state. */
static void
-cap_destructor (void *buffer)
+cap_destructor (void *hook, void *buffer)
{
hurd_cap_t cap = (hurd_cap_t) buffer;
@@ -76,7 +76,8 @@ error_t
hurd_cap_init (void)
{
return hurd_slab_create (sizeof (struct hurd_cap), 0,
- cap_constructor, cap_destructor, &cap_space);
+ cap_constructor, cap_destructor, NULL,
+ &cap_space);
}
- [PATCH] Apply slab interface changes to cap.c,
Daniel Wagner <=