mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
KdParseFindNext: Constify delim argument
It's only used as input to strchr to find the delimiters, never written to. Clears a bunch of gcc warnings of the form: kdrive.c:323:2: warning: passing argument 2 of 'KdParseFindNext' discards qualifiers from pointer target type kdrive.c:261:1: note: expected 'char *' but argument is of type 'const char *' 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:
@@ -253,7 +253,7 @@ Bool kdDumbDriver;
|
||||
Bool kdSoftCursor;
|
||||
|
||||
char *
|
||||
KdParseFindNext (char *cur, char *delim, char *save, char *last)
|
||||
KdParseFindNext (char *cur, const char *delim, char *save, char *last)
|
||||
{
|
||||
while (*cur && !strchr (delim, *cur))
|
||||
{
|
||||
|
||||
@@ -424,7 +424,7 @@ KdKeyboardInfo *
|
||||
KdParseKeyboard (char *arg);
|
||||
|
||||
char *
|
||||
KdParseFindNext (char *cur, char *delim, char *save, char *last);
|
||||
KdParseFindNext (char *cur, const char *delim, char *save, char *last);
|
||||
|
||||
void
|
||||
KdParseRgba (char *rgba);
|
||||
|
||||
Reference in New Issue
Block a user