diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 07:57:32 +0000 |
commit | ee442551e1531712226a3a3ba26afff466100bb5 (patch) | |
tree | d7907b07baecce7abe3940bec566b3bf56596f2f /server/client.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'server/client.c')
-rw-r--r-- | server/client.c | 7 |
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); |