summaryrefslogtreecommitdiff
path: root/printev.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 11:00:58 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-27 11:01:01 -0800
commitb71eb0361cf556909d88b59ccdb810a137c1efeb (patch)
tree8f4b6e11487910e07eeaee623e291e04ee41cc6a /printev.c
parent6ad0af956bbc328c91fdb2327b43614c7ebbb000 (diff)
Fix gcc -Wwrite-strings warnings
except for those caused by code generated by bison/yacc Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'printev.c')
-rw-r--r--printev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/printev.c b/printev.c
index 99d3c72..a66237f 100644
--- a/printev.c
+++ b/printev.c
@@ -46,7 +46,7 @@ static char name[20];
}
static void
-xkb_prologue (FILE *file, XkbEvent *ev, char *name)
+xkb_prologue (FILE *file, XkbEvent *ev, const char *name)
{
XkbAnyEvent *e = &ev->any;
@@ -91,7 +91,7 @@ do_XkbStateNotify(FILE *file, XkbEvent *xkbev)
}
static void
-do_map_message(char *what, int first, int num, int eol)
+do_map_message(const char *what, int first, int num, int eol)
{
if (num>1)
printf("%ss %d..%d changed%s",what,first,first+num-1,(eol?"\n":""));
@@ -182,7 +182,7 @@ static void
do_XkbAccessXNotify(FILE *file, XkbEvent *xkbev)
{
XkbAccessXNotifyEvent *sk = &xkbev->accessx;
- char *detail;
+ const char *detail;
switch (sk->detail) {
case XkbAXN_SKPress: detail= "skpress"; break;
case XkbAXN_SKAccept: detail= "skaccept"; break;