summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/unicode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c
index 61989e5ab0..4ef6eaae2b 100644
--- a/firmware/common/unicode.c
+++ b/firmware/common/unicode.c
@@ -45,7 +45,7 @@ static int loaded_cp_table = 0;
45#define MAX_CP_TABLE_SIZE 32768 45#define MAX_CP_TABLE_SIZE 32768
46#define NUM_TABLES 5 46#define NUM_TABLES 5
47 47
48static const char *filename[NUM_TABLES] = 48static const char * const filename[NUM_TABLES] =
49{ 49{
50 CODEPAGE_DIR"/iso.cp", 50 CODEPAGE_DIR"/iso.cp",
51 CODEPAGE_DIR"/932.cp", /* SJIS */ 51 CODEPAGE_DIR"/932.cp", /* SJIS */
@@ -59,7 +59,7 @@ static const char cp_2_table[NUM_CODEPAGES] =
59 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0 59 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 0
60}; 60};
61 61
62static const char *name_codepages[NUM_CODEPAGES+1] = 62static const char * const name_codepages[NUM_CODEPAGES+1] =
63{ 63{
64 "ISO-8859-1", 64 "ISO-8859-1",
65 "ISO-8859-7", 65 "ISO-8859-7",
@@ -83,7 +83,7 @@ static const char *name_codepages[NUM_CODEPAGES+1] =
83#define MAX_CP_TABLE_SIZE 640 83#define MAX_CP_TABLE_SIZE 640
84#define NUM_TABLES 1 84#define NUM_TABLES 1
85 85
86static const char *filename[NUM_TABLES] = { 86static const char * const filename[NUM_TABLES] = {
87 CODEPAGE_DIR"/isomini.cp" 87 CODEPAGE_DIR"/isomini.cp"
88}; 88};
89 89
@@ -92,7 +92,7 @@ static const char cp_2_table[NUM_CODEPAGES] =
92 0, 1, 1, 1, 1, 1, 0 92 0, 1, 1, 1, 1, 1, 0
93}; 93};
94 94
95static const char *name_codepages[NUM_CODEPAGES+1] = 95static const char * const name_codepages[NUM_CODEPAGES+1] =
96{ 96{
97 "ISO-8859-1", 97 "ISO-8859-1",
98 "ISO-8859-7", 98 "ISO-8859-7",
@@ -116,7 +116,7 @@ static const unsigned char utf8comp[6] =
116/* Load codepage file into memory */ 116/* Load codepage file into memory */
117static int load_cp_table(int cp) 117static int load_cp_table(int cp)
118{ 118{
119 int i=0; 119 int i = 0;
120 int table = cp_2_table[cp]; 120 int table = cp_2_table[cp];
121 int file, tablesize; 121 int file, tablesize;
122 unsigned char tmp[2]; 122 unsigned char tmp[2];