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

Comparing:
ircd-hybrid-7.2/src/irc_reslib.c (file contents), Revision 996 by michael, Fri Aug 21 10:16:29 2009 UTC vs.
ircd-hybrid-7.3/src/irc_reslib.c (file contents), Revision 1123 by michael, Sun Feb 6 21:57:50 2011 UTC

# Line 81 | Line 81
81   */
82  
83   #include "stdinc.h"
84 #include "irc_reslib.h"
85 #include "irc_res.h"    
84   #include "ircd_defs.h"
85 + #include "irc_res.h"
86 + #include "irc_reslib.h"
87   #include "fileio.h"
88   #include "irc_string.h"
89 #include "irc_getaddrinfo.h"
89  
90   #define NS_TYPE_ELT             0x40 /* EDNS0 extended label type */
91   #define DNS_LABELTYPE_BITSTRING 0x41
# Line 238 | Line 237 | add_nameserver(char *arg)
237    hints.ai_socktype = SOCK_DGRAM;
238    hints.ai_flags    = AI_PASSIVE | AI_NUMERICHOST;
239  
240 <  if (irc_getaddrinfo(arg, "domain", &hints, &res))
240 >  if (getaddrinfo(arg, "domain", &hints, &res))
241      return;
242  
243    if (res == NULL)
# Line 247 | Line 246 | add_nameserver(char *arg)
246    memcpy(&irc_nsaddr_list[irc_nscount].ss, res->ai_addr, res->ai_addrlen);
247    irc_nsaddr_list[irc_nscount].ss_len = res->ai_addrlen;
248    irc_nscount++;
249 <  irc_freeaddrinfo(res);
249 >  freeaddrinfo(res);
250   }
251  
252   /*

Diff Legend

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