refactor: remove some casts to char * (#24200)

This commit is contained in:
zeertzjq
2023-06-29 15:48:42 +08:00
committed by GitHub
parent 7d0a23973b
commit aa362a2af8
6 changed files with 20 additions and 21 deletions

View File

@@ -389,7 +389,7 @@ typedef struct {
static int string_compare(const void *s1, const void *s2) FUNC_ATTR_NONNULL_ALL
{
if (sort_lc) {
return strcoll((char *)s1, (char *)s2);
return strcoll((const char *)s1, (const char *)s2);
}
return sort_ic ? STRICMP(s1, s2) : strcmp(s1, s2);
}