Fix warnings during bootstrap phase on macOS

This commit is contained in:
Alex Richardson 2020-12-14 16:14:04 +00:00 committed by Alex Richardson
parent 4e64fb9f49
commit 7467c537a5

View File

@ -51,7 +51,7 @@ strchrnul(const char *p, int ch)
c = ch;
for (;; ++p) {
if (*p == c || *p == '\0')
return ((char *)p);
return (__DECONST(char *, p));
}
/* NOTREACHED */
}