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:
parent
ff64ad6c74
commit
9edfa47bd5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue