summaryrefslogtreecommitdiffstats
path: root/vncviewer/keysym2ucs.c
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-07-21 16:12:00 +0200
committerPierre Ossman <ossman@cendio.se>2014-07-21 16:12:00 +0200
commitb662ffd4ac9b18ffacebb26d5a57680dd49788b2 (patch)
tree7881f9db1b7cdafd4d4405177b5a415120f91624 /vncviewer/keysym2ucs.c
parentc92081e116509bab734040f4ccdb9586da7f5c60 (diff)
downloadtigervnc-b662ffd4ac9b18ffacebb26d5a57680dd49788b2.tar.gz
tigervnc-b662ffd4ac9b18ffacebb26d5a57680dd49788b2.zip
Make keysymtab static and const
Static to avoid namespace polution, and const so that it can be shared among instances.
Diffstat (limited to 'vncviewer/keysym2ucs.c')
-rw-r--r--vncviewer/keysym2ucs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vncviewer/keysym2ucs.c b/vncviewer/keysym2ucs.c
index d12eb491..4e3dca25 100644
--- a/vncviewer/keysym2ucs.c
+++ b/vncviewer/keysym2ucs.c
@@ -37,7 +37,9 @@
struct codepair {
unsigned short keysym;
unsigned short ucs;
-} keysymtab[] = {
+};
+
+static const struct codepair keysymtab[] = {
{ 0x01a1, 0x0104 }, /* Aogonek Ą LATIN CAPITAL LETTER A WITH OGONEK */
{ 0x01a2, 0x02d8 }, /* breve ˘ BREVE */
{ 0x01a3, 0x0141 }, /* Lstroke Ł LATIN CAPITAL LETTER L WITH STROKE */