Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ircd / hash.c
index c3b58b5a973ef571f468ef73c01d8db2d842873c..5414af42481ca33bea390bc5de8721f527b10862 100644 (file)
@@ -21,6 +21,8 @@
  *
  * $Id$
  */
+#include "config.h"
+
 #include "hash.h"
 #include "client.h"
 #include "channel.h"
@@ -355,7 +357,7 @@ int hChangeClient(struct Client *cptr, const char *newname)
   assert(0 != cptr);
   hRemClient(cptr);
 
-  cptr->hnext = clientTable[newhash];
+  cli_hnext(cptr) = clientTable[newhash];
   clientTable[newhash] = cptr;
   return 0;
 }
@@ -402,7 +404,7 @@ struct Client* hSeekClient(const char *name, int TMask)
   if (cptr) {
     if (0 == (cli_status(cptr) & TMask) || 0 != ircd_strcmp(name, cli_name(cptr))) {
       struct Client* prev;
-      while (prev = cptr, cptr = cptr->hnext) {
+      while (prev = cptr, cptr = cli_hnext(cptr)) {
         if ((cli_status(cptr) & TMask) && (0 == ircd_strcmp(name, cli_name(cptr)))) {
           cli_hnext(prev) = cli_hnext(cptr);
           cli_hnext(cptr) = clientTable[hashv];