From 98b70c1cd6a3272732c52b12bb2d47757dceea33 Mon Sep 17 00:00:00 2001 From: Lucien Van Elsen Date: Fri, 17 Jan 1992 02:45:10 +0000 Subject: turn off other debugging info (for speed) clt_free only called once; inline. --- server/client.c | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) (limited to 'server/client.c') diff --git a/server/client.c b/server/client.c index 6970736..f66515e 100644 --- a/server/client.c +++ b/server/client.c @@ -54,16 +54,6 @@ static char rcsid_client_c[] = * The caller should check by calling client_which_client */ -#ifdef __STDC__ -# define P(s) s -#else -# define P(s) () -#endif - -static void clt_free P((ZClient_t *client)); - -#undef P - Code_t client_register(notice, who, client, server, wantdefaults) ZNotice_t *notice; @@ -181,8 +171,10 @@ client_deregister(client, host, flush) clients = clients->q_forw) if (clients->zclt_client == client) { xremque(clients); - clt_free(client); + free_zstring(client->zct_principal); + client = NULLZCNT; xfree(clients); + clients = NULLZCLT; (void) sigsetmask(omask); return; } @@ -204,7 +196,7 @@ client_which_client(who, notice) register ZClientList_t *clients; if (!(hlt = hostm_find_host(&who->sin_addr))) { -#if 1 +#if 0 zdbug((LOG_DEBUG,"cl_wh_clt: host not found")); #endif return(NULLZCNT); @@ -251,11 +243,3 @@ client_dump_clients(fp, clist) } return; } - -static void -clt_free(client) - ZClient_t *client; -{ - free_zstring(client->zct_principal); - xfree(client); -} -- cgit v1.2.3