]> jfr.im git - solanum.git/blobdiff - src/reslib.c
Fix some warnings in the resolver code.
[solanum.git] / src / reslib.c
index 4f2c57030ac817e4a00c7e0730fab0b31084b5b1..4d2236ed88a5dc46e7d95b579feccc2f4d8f311e 100644 (file)
@@ -409,7 +409,7 @@ irc_ns_name_ntop(const char *src, char *dst, size_t dstsiz)
                        }
                        *dn++ = '.';
                }
-               if ((l = labellen((unsigned char*)(cp - 1))) < 0) {
+               if ((l = labellen((const unsigned char*)(cp - 1))) < 0) {
                        errno = EMSGSIZE; /* XXX */
                        return(-1);
                }