summaryrefslogtreecommitdiff
path: root/server/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/client.c')
-rw-r--r--server/client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/client.c b/server/client.c
index e56c9b9..90d83bc 100644
--- a/server/client.c
+++ b/server/client.c
@@ -65,7 +65,6 @@ client_register(ZNotice_t *notice,
int wantdefaults)
{
Client *client;
- Code_t retval;
/* chain the client's host onto this server's host list */
@@ -98,8 +97,8 @@ client_register(ZNotice_t *notice,
client->subs = NULL;
client->realm = NULL;
client->principal = make_string(notice->z_sender, 0);
- LIST_INSERT(&client_bucket[INET_HASH(&client->addr.sin_addr,
- notice->z_port)], client);
+ Client_insert(&client_bucket[INET_HASH(&client->addr.sin_addr,
+ notice->z_port)], client);
}
/* Add default subscriptions only if this is not resulting from a brain
@@ -120,7 +119,7 @@ void
client_deregister(Client *client,
int flush)
{
- LIST_DELETE(client);
+ Client_delete(client);
nack_release(client);
subscr_cancel_client(client);
free_string(client->principal);