if ((n = irc_ns_name_unpack(msg, eom, src, tmp, sizeof tmp)) == -1)
return(-1);
- if (irc_ns_name_ntop(tmp, dst, dstsiz) == -1)
+ if (irc_ns_name_ntop((char*)tmp, (char*)dst, dstsiz) == -1)
return(-1);
return(n);
}
}
*dn++ = '.';
}
- if ((l = labellen(cp - 1)) < 0) {
+ if ((l = labellen((const unsigned char*)(cp - 1))) < 0) {
errno = EMSGSIZE; /* XXX */
return(-1);
}
if (!isxdigit((*cp) & 0xff)) /* reject '\[x/BLEN]' */
return(EINVAL);
- for (tp = *dst + 1; cp < end && tp < eom; cp++) {
+ for (tp = (char*)(*dst + 1); cp < end && tp < eom; cp++) {
switch((c = *cp)) {
case ']': /* end of the bitstring */
if (afterslash) {
**dst = blen;
*bp = cp;
- *dst = tp;
+ *dst = (unsigned char*)tp;
return(0);
}