sync with OpenBSD -current

This commit is contained in:
purplerain 2025-01-10 01:40:29 +00:00
parent 4b49aefbb1
commit 1fd36b57f8
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
945 changed files with 81965 additions and 59988 deletions

View file

@ -125,32 +125,3 @@ uInternalError(const char *s, ...)
/***====================================================================***/
#ifndef HAVE_STRCASECMP
int
uStrCaseCmp(const char *str1, const char *str2)
{
char buf1[512], buf2[512];
char c, *s;
register int n;
for (n = 0, s = buf1; (c = *str1++); n++) {
if (isupper(c))
c = tolower(c);
if (n > 510)
break;
*s++ = c;
}
*s = '\0';
for (n = 0, s = buf2; (c = *str2++); n++) {
if (isupper(c))
c = tolower(c);
if (n > 510)
break;
*s++ = c;
}
*s = '\0';
return (strcmp(buf1, buf2));
}
#endif