mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-21 20:26:45 +00:00
CompareISOLatin1Lowered: constify arguments
Allows callers to avoid deconstifying arguments when calling, fixing gcc warning: filter.c: In function 'PictureGetFilterId': filter.c:59:2: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
83ac9502ea
commit
d5a5eece67
3 changed files with 6 additions and 5 deletions
|
|
@ -56,7 +56,8 @@ PictureGetFilterId (const char *filter, int len, Bool makeit)
|
|||
if (len < 0)
|
||||
len = strlen (filter);
|
||||
for (i = 0; i < nfilterNames; i++)
|
||||
if (!CompareISOLatin1Lowered ((unsigned char *) filterNames[i], -1, (unsigned char *) filter, len))
|
||||
if (!CompareISOLatin1Lowered ((const unsigned char *) filterNames[i], -1,
|
||||
(const unsigned char *) filter, len))
|
||||
return i;
|
||||
if (!makeit)
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue