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/class.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server/class.c') diff --git a/server/class.c b/server/class.c index 740b065..0e84b1d 100644 --- a/server/class.c +++ b/server/class.c @@ -130,7 +130,7 @@ triplet_register(Client *client, /* Triplet not present in hash table, insert it. */ triplet = triplet_alloc(dest->classname, dest->inst, dest->recip); - LIST_INSERT(&triplet_bucket[hashval], triplet); + Triplet_insert(&triplet_bucket[hashval], triplet); return insert_client(triplet, client, realm); } @@ -156,7 +156,7 @@ triplet_deregister(Client *client, if (retval != ZERR_NONE) return retval; if (*triplet->clients == NULL && !triplet->acl) { - LIST_DELETE(triplet); + Triplet_delete(triplet); free_triplet(triplet); return ZSRV_EMPTYCLASS; } @@ -265,7 +265,7 @@ class_setup_restricted(char *class_name, if (!triplet) return ENOMEM; triplet->acl = acl; - LIST_INSERT(&triplet_bucket[hashval], triplet); + Triplet_insert(&triplet_bucket[hashval], triplet); return ZERR_NONE; } @@ -279,7 +279,6 @@ triplet_alloc(String *classname, String *recipient) { Triplet *triplet; - Client *clist; triplet = (Triplet *) malloc(sizeof(Triplet)); if (!triplet) -- cgit v1.2.3