summaryrefslogtreecommitdiff
path: root/src/StrKeysym.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-15 23:25:38 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-16 10:20:53 -0800
commitafd6593da90e51234d59f8921c411317f91ab48b (patch)
tree57d7edb73514884c15f09d4b028b78b0c530c52c /src/StrKeysym.c
parent7e3bf4dd83fec22bd568146de75e6d59eff74e21 (diff)
XStringToKeysym: preserve constness when casting off unsignedness for strcmp
Fixes gcc warning: StrKeysym.c:97:17: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/StrKeysym.c')
-rw-r--r--src/StrKeysym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/StrKeysym.c b/src/StrKeysym.c
index 4394e0cd..12fce687 100644
--- a/src/StrKeysym.c
+++ b/src/StrKeysym.c
@@ -94,7 +94,7 @@ XStringToKeysym(_Xconst char *s)
{
entry = &_XkeyTable[idx];
if ((entry[0] == sig1) && (entry[1] == sig2) &&
- !strcmp(s, (char *)entry + 6))
+ !strcmp(s, (const char *)entry + 6))
{
val = (entry[2] << 24) | (entry[3] << 16) |
(entry[4] << 8) | entry[5];