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

Comparing ircd-hybrid-7.2/src/irc_res.c (file contents):
Revision 995 by michael, Fri Aug 21 10:11:14 2009 UTC vs.
Revision 997 by michael, Fri Aug 21 10:25:40 2009 UTC

# Line 309 | Line 309 | make_request(dns_callback_fnc callback,
309   void
310   delete_resolver_queries(const void *vptr)
311   {
312 <  dlink_node *ptr;
313 <  dlink_node *next_ptr;
314 <  struct reslist *request;
312 >  dlink_node *ptr = NULL, *next_ptr = NULL;
313  
314    DLINK_FOREACH_SAFE(ptr, next_ptr, request_list.head)
315    {
316 <    if ((request = ptr->data) != NULL)
317 <    {
318 <      if (request->callback_ctx == vptr)
319 <        rem_request(request);
322 <    }
316 >    struct reslist *request = ptr->data;
317 >
318 >    if (request->callback_ctx == vptr)
319 >      rem_request(request);
320    }
321   }
322  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines