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/class.c | |
parent | e6fb0737027ee97d911e8d507b1db37446067d10 (diff) |
passes gcc -Wall with no warnings other than des cryppt C_block sadness and getsid problem
Diffstat (limited to 'server/class.c')
-rw-r--r-- | server/class.c | 7 |
1 files changed, 3 insertions, 4 deletions
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) |