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

Comparing ircd-hybrid-8/src/irc_reslib.c (file contents):
Revision 1156 by michael, Tue Aug 9 20:29:20 2011 UTC vs.
Revision 1256 by michael, Sun Jan 15 05:58:40 2012 UTC

# Line 1132 | Line 1132 | irc_res_mkquery(
1132          HEADER *hp;
1133          unsigned char *cp;
1134          int n;
1135 <        unsigned char *dnptrs[20], **dpp, **lastdnptr;
1135 >        const unsigned char *dnptrs[20], **dpp, **lastdnptr;
1136  
1137          /*
1138           * Initialize header fields.
# Line 1155 | Line 1155 | irc_res_mkquery(
1155  
1156          if ((buflen -= QFIXEDSZ) < 0)
1157            return (-1);
1158 <        if ((n = irc_ns_name_compress(dname, cp, buflen, (const unsigned char **)dnptrs,
1159 <                                                         (const unsigned char **)lastdnptr)) < 0)
1158 >        if ((n = irc_ns_name_compress(dname, cp, buflen, dnptrs,
1159 >                                                         lastdnptr)) < 0)
1160            return (-1);
1161  
1162          cp += n;

Diff Legend

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