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

Comparing ircd-hybrid/trunk/src/whowas.c (file contents):
Revision 4799 by michael, Sun Oct 19 18:02:20 2014 UTC vs.
Revision 4800 by michael, Tue Oct 28 13:59:43 2014 UTC

# Line 88 | Line 88 | whowas_add_history(struct Client *client
88   void
89   whowas_off_history(struct Client *client_p)
90   {
91 <  dlink_node *ptr = NULL, *ptr_next = NULL;
91 >  dlink_node *node = NULL, *node_next = NULL;
92  
93 <  DLINK_FOREACH_SAFE(ptr, ptr_next, client_p->whowas.head)
93 >  DLINK_FOREACH_SAFE(node, node_next, client_p->whowas.head)
94    {
95 <    struct Whowas *temp = ptr->data;
95 >    struct Whowas *temp = node->data;
96  
97      temp->online = NULL;
98      dlinkDelete(&temp->cnode, &client_p->whowas);
# Line 102 | Line 102 | whowas_off_history(struct Client *client
102   struct Client *
103   whowas_get_history(const char *nick, time_t timelimit)
104   {
105 <  dlink_node *ptr = NULL;
105 >  dlink_node *node = NULL;
106  
107    timelimit = CurrentTime - timelimit;
108  
109 <  DLINK_FOREACH(ptr, WHOWASHASH[strhash(nick)].head)
109 >  DLINK_FOREACH(node, WHOWASHASH[strhash(nick)].head)
110    {
111 <    struct Whowas *temp = ptr->data;
111 >    struct Whowas *temp = node->data;
112  
113      if (temp->logoff < timelimit)
114        continue;

Diff Legend

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