diff options
authorAlan Coopersmith <>2011-12-12 16:49:34 -0800
committerAlan Coopersmith <>2011-12-12 17:03:11 -0800
commit9edfa47bd58cd318d57d0f114714fd146be35a79 (patch)
parentff64ad6c74a3e14ca34bacb8866bdbd2262bddff (diff)
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 <> Reviewed-by: Jamey Sharp <> Reviewed-by: Peter Hutterer <>
2 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/src/kdrive.c b/hw/kdrive/src/kdrive.c
index 2c649409e..f6cc351cd 100644
--- a/hw/kdrive/src/kdrive.c
+++ b/hw/kdrive/src/kdrive.c
@@ -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))
diff --git a/hw/kdrive/src/kdrive.h b/hw/kdrive/src/kdrive.h
index 9ac5a19d7..be884ab05 100644
--- a/hw/kdrive/src/kdrive.h
+++ b/hw/kdrive/src/kdrive.h
@@ -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);
KdParseRgba (char *rgba);