xkb: Make XkbWriteCountedString take a const char * input parameter
authorKeith Packard <keithp@keithp.com>
Sun, 17 Nov 2013 07:35:21 +0000 (23:35 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 12 Jan 2014 18:14:50 +0000 (10:14 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
xkb/xkb.c

index c78aceb..27e761c 100644 (file)
--- a/xkb/xkb.c
+++ b/xkb/xkb.c
@@ -4419,7 +4419,7 @@ ProcXkbSetNames(ClientPtr client)
  * (swapped) 16 bit string length, non-zero terminated.
  */
 static char *
-XkbWriteCountedString(char *wire, char *str, Bool swap)
+XkbWriteCountedString(char *wire, const char *str, Bool swap)
 {
     CARD16 len, *pLen, paddedLen;