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/branches/8.2.x/src/res.c (file contents):
Revision 4466 by michael, Wed Aug 13 18:56:47 2014 UTC vs.
Revision 4467 by michael, Wed Aug 13 19:00:37 2014 UTC

# Line 241 | Line 241 | delete_resolver_queries(const void *vptr
241   * nameservers or -1 if no successful sends.
242   */
243   static int
244 < send_res_msg(const char *msg, int len, unsigned int rcount)
244 > send_res_msg(const unsigned char *msg, int len, unsigned int rcount)
245   {
246    int sent = 0;
247    unsigned int max_queries = IRCD_MIN(irc_nscount, rcount);
# Line 286 | Line 286 | find_id(int id)
286   * query_name - generate a query based on class, type and name.
287   */
288   static void
289 < query_name(const char *name, int query_class, int type,
290 <           struct reslist *request)
289 > query_name(const char *name, int query_class, int type, struct reslist *request)
290   {
291 <  char buf[MAXPACKET];
291 >  unsigned char buf[MAXPACKET];
292    int request_len = 0;
293  
294    memset(buf, 0, sizeof(buf));
295  
296 <  if ((request_len = irc_res_mkquery(name, query_class, type,
298 <      (unsigned char *)buf, sizeof(buf))) > 0)
296 >  if ((request_len = irc_res_mkquery(name, query_class, type, buf, sizeof(buf))) > 0)
297    {
298      HEADER *header = (HEADER *)buf;
299  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines