Changed nxt_memcasecmp() interface to avoid casts.

This commit is contained in:
Igor Sysoev
2019-10-10 19:37:40 +03:00
parent 75453479f3
commit ec0d5c928e
3 changed files with 12 additions and 10 deletions

View File

@@ -188,10 +188,14 @@ nxt_strncasecmp(const u_char *s1, const u_char *s2, size_t length)
nxt_int_t
nxt_memcasecmp(const u_char *s1, const u_char *s2, size_t length)
nxt_memcasecmp(const void *p1, const void *p2, size_t length)
{
u_char c1, c2;
nxt_int_t n;
u_char c1, c2;
nxt_int_t n;
const u_char *s1, *s2;
s1 = p1;
s2 = p2;
while (length-- != 0) {
c1 = *s1++;