]> source.dussan.org Git - tigervnc.git/commitdiff
Make keysymtab static and const
authorPierre Ossman <ossman@cendio.se>
Mon, 21 Jul 2014 14:12:00 +0000 (16:12 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 21 Jul 2014 14:12:00 +0000 (16:12 +0200)
Static to avoid namespace polution, and const so that it can be
shared among instances.

vncviewer/keysym2ucs.c

index d12eb491162434981341516422f4183ed8a5c92d..4e3dca25a00efc05955b7c23e33aab501dc74072 100644 (file)
@@ -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 */