ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/hash.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/hash.c (file contents):
Revision 3286 by michael, Sun Mar 30 16:49:56 2014 UTC vs.
Revision 3287 by michael, Wed Apr 9 18:48:19 2014 UTC

# Line 624 | Line 624 | add_user_host(const char *user, const ch
624   void
625   delete_user_host(const char *user, const char *host, int global)
626   {
627 <  dlink_node *ptr = NULL, *next_ptr = NULL;
628 <  struct UserHost *found_userhost;
629 <  struct NameHost *nameh;
630 <  int hasident = 1;
627 >  dlink_node *ptr = NULL;
628 >  struct UserHost *found_userhost = NULL;
629 >  unsigned int hasident = 1;
630  
631    if (*user == '~')
632    {
# Line 638 | Line 637 | delete_user_host(const char *user, const
637    if ((found_userhost = hash_find_userhost(host)) == NULL)
638      return;
639  
640 <  DLINK_FOREACH_SAFE(ptr, next_ptr, found_userhost->list.head)
640 >  DLINK_FOREACH(ptr, found_userhost->list.head)
641    {
642 <    nameh = ptr->data;
642 >    struct NameHost *nameh = ptr->data;
643  
644      if (!irccmp(user, nameh->name))
645      {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)