#include "ircd.h"
#include "res.h"
#include "reslib.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
#define NS_TYPE_ELT 0x40 /* EDNS0 extended label type */
#define DNS_LABELTYPE_BITSTRING 0x41
*p = '\0'; /* take the first word */
if (irccmp(opt, "domain") == 0)
- strlcpy(irc_domain, arg, sizeof(irc_domain));
+ rb_strlcpy(irc_domain, arg, sizeof(irc_domain));
else if (irccmp(opt, "nameserver") == 0)
add_nameserver(arg);
}
}
*dn++ = '.';
}
- if ((l = labellen((unsigned char*)(cp - 1))) < 0) {
+ if ((l = labellen((const unsigned char*)(cp - 1))) < 0) {
errno = EMSGSIZE; /* XXX */
return(-1);
}