96 |
_hurd_cap_client_t *r_client) |
_hurd_cap_client_t *r_client) |
97 |
{ |
{ |
98 |
error_t err; |
error_t err; |
99 |
|
void *new_client; |
100 |
_hurd_cap_client_t client; |
_hurd_cap_client_t client; |
101 |
|
|
102 |
err = hurd_slab_alloc (&_hurd_cap_client_space, (void **) &client); |
err = hurd_slab_alloc (&_hurd_cap_client_space, &new_client); |
103 |
if (!client) |
if (err) |
104 |
return errno; |
return err; |
105 |
|
|
106 |
|
client = new_client; |
107 |
|
|
108 |
/* CLIENT->id will be initialized by the caller when adding the |
/* CLIENT->id will be initialized by the caller when adding the |
109 |
client to the client table of the class. */ |
client to the client table of the class. */ |