summaryrefslogtreecommitdiff
path: root/src/xkbout.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 18:17:15 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-16 23:01:35 -0800
commit7b6123644fe23c2eb9816cf00729253b2dd53b23 (patch)
tree15086491143cafd7973ecebc0773d75413bdc06f /src/xkbout.c
parent0c2c504819b8788075115f848343bd45a3bb6605 (diff)
downloadxorg-lib-libxkbfile-7b6123644fe23c2eb9816cf00729253b2dd53b23.tar.gz
Add const attributes to fix gcc -Wwrite-strings warnings
Does not fix all of them, as some affect the API and thus need more analysis. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/xkbout.c')
-rw-r--r--src/xkbout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xkbout.c b/src/xkbout.c
index ad1fd03..91cd1ba 100644
--- a/src/xkbout.c
+++ b/src/xkbout.c
@@ -129,7 +129,7 @@ Atom kcName;
register unsigned i;
XkbDescPtr xkb;
Display * dpy;
-char * alternate;
+const char * alternate;
xkb= result->xkb;
if ((!xkb)||(!xkb->names)||(!xkb->names->keys)) {
@@ -156,7 +156,7 @@ char * alternate;
}
if (xkb->indicators!=NULL) {
for (i=0;i<XkbNumIndicators;i++) {
- char *type;
+ const char *type;
if (xkb->indicators->phys_indicators&(1<<i))
type= " ";
else type= " virtual ";
@@ -433,7 +433,7 @@ Bool showActions;
(showImplicit)) {
int typeNdx,g;
Bool multi;
- char * comment=" ";
+ const char * comment=" ";
if ((srv->explicit[i]&XkbExplicitKeyTypesMask)==0)
comment= "//";