summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-11-15 05:28:47 -0800
committerKeith Packard <keithp@keithp.com>2014-01-12 10:14:49 -0800
commit6e51645b4796fc3a02206fefd416b84beb2fcdf7 (patch)
tree3185d4a25eb59b1af45649cc8353391d2afb2009 /include
parentabce3206cbc82f632abae5344e0ce46622e00f24 (diff)
xkb: Clean up warnings
Add const to lots of strings. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/xkbrules.h2
-rw-r--r--include/xkbsrv.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/xkbrules.h b/include/xkbrules.h
index 5b69d0db2..956eade0b 100644
--- a/include/xkbrules.h
+++ b/include/xkbrules.h
@@ -64,7 +64,7 @@ typedef struct _XkbRF_Rule {
typedef struct _XkbRF_Group {
int number;
const char *name;
- const char *words;
+ char *words;
} XkbRF_GroupRec, *XkbRF_GroupPtr;
#define XkbRF_PendingMatch (1L<<1)
diff --git a/include/xkbsrv.h b/include/xkbsrv.h
index 346ebccf0..fbfe4035f 100644
--- a/include/xkbsrv.h
+++ b/include/xkbsrv.h
@@ -852,7 +852,7 @@ extern _X_EXPORT unsigned int XkbDDXLoadKeymapByNames(DeviceIntPtr /* keybd */ ,
);
extern _X_EXPORT Bool XkbDDXNamesFromRules(DeviceIntPtr /* keybd */ ,
- char * /* rules */ ,
+ const char * /* rules */ ,
XkbRF_VarDefsPtr /* defs */ ,
XkbComponentNamesPtr /* names */
);