DF-5712 / fix.diff
--- a/sys/libkern/index.c +++ b/sys/libkern/index.c @@ -43,7 +43,7 @@ index(const char *p, int ch) u.cp = p; for (;; ++u.p) { - if (*u.p == ch) + if (*u.p == (char)ch) return(u.p); if (!*u.p) return(NULL); --- a/sys/libkern/rindex.c +++ b/sys/libkern/rindex.c @@ -44,7 +44,7 @@ rindex(const char *p, int ch) u.cp = p; for (save = NULL;; ++u.p) { - if (*u.p == ch) + if (*u.p == (char)ch) save = u.p; if (!*u.p) return(save); |