From: Pierre Ossman Date: Mon, 21 Jul 2014 14:12:00 +0000 (+0200) Subject: Make keysymtab static and const X-Git-Tag: v1.3.90~34^2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b662ffd4ac9b18ffacebb26d5a57680dd49788b2;p=tigervnc.git Make keysymtab static and const Static to avoid namespace polution, and const so that it can be shared among instances. --- 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 */