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;
|
Bool kdSoftCursor;
|
||||||
|
|
||||||
char *
|
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))
|
while (*cur && !strchr (delim, *cur))
|
||||||
{
|
{
|
||||||
|
|
|
@ -424,7 +424,7 @@ KdKeyboardInfo *
|
||||||
KdParseKeyboard (char *arg);
|
KdParseKeyboard (char *arg);
|
||||||
|
|
||||||
char *
|
char *
|
||||||
KdParseFindNext (char *cur, char *delim, char *save, char *last);
|
KdParseFindNext (char *cur, const char *delim, char *save, char *last);
|
||||||
|
|
||||||
void
|
void
|
||||||
KdParseRgba (char *rgba);
|
KdParseRgba (char *rgba);
|
||||||
|
|
Loading…
Reference in New Issue