diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-15 23:25:38 -0800 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-19 21:40:26 +0200 |
commit | d91c145a46bcece11623121f5e468d24d5031cab (patch) | |
tree | 2beda2b5baf8f02e81e1c1a2a409d49db06f4511 /nx-X11/lib | |
parent | 6417045168d4ea833c3d340c885932befd25adad (diff) | |
download | nx-libs-d91c145a46bcece11623121f5e468d24d5031cab.tar.gz nx-libs-d91c145a46bcece11623121f5e468d24d5031cab.tar.bz2 nx-libs-d91c145a46bcece11623121f5e468d24d5031cab.zip |
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>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib')
-rw-r--r-- | nx-X11/lib/X11/StrKeysym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/StrKeysym.c b/nx-X11/lib/X11/StrKeysym.c index 21dec924b..125aceca3 100644 --- a/nx-X11/lib/X11/StrKeysym.c +++ b/nx-X11/lib/X11/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]; |