From ee442551e1531712226a3a3ba26afff466100bb5 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 07:57:32 +0000 Subject: passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem --- server/client.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/client.c') 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); -- cgit v1.2.3