diff options
Diffstat (limited to 'fs/nls/nls_iso8859-1.c')
| -rw-r--r-- | fs/nls/nls_iso8859-1.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nls/nls_iso8859-1.c b/fs/nls/nls_iso8859-1.c index 2483c3c6c1c1..7b951bb5849c 100644 --- a/fs/nls/nls_iso8859-1.c +++ b/fs/nls/nls_iso8859-1.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <linux/nls.h> | 13 | #include <linux/nls.h> |
| 14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
| 15 | 15 | ||
| 16 | static wchar_t charset2uni[256] = { | 16 | static const wchar_t charset2uni[256] = { |
| 17 | /* 0x00*/ | 17 | /* 0x00*/ |
| 18 | 0x0000, 0x0001, 0x0002, 0x0003, | 18 | 0x0000, 0x0001, 0x0002, 0x0003, |
| 19 | 0x0004, 0x0005, 0x0006, 0x0007, | 19 | 0x0004, 0x0005, 0x0006, 0x0007, |
| @@ -96,7 +96,7 @@ static wchar_t charset2uni[256] = { | |||
| 96 | 0x00fc, 0x00fd, 0x00fe, 0x00ff, | 96 | 0x00fc, 0x00fd, 0x00fe, 0x00ff, |
| 97 | }; | 97 | }; |
| 98 | 98 | ||
| 99 | static unsigned char page00[256] = { | 99 | static const unsigned char page00[256] = { |
| 100 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ | 100 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ |
| 101 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ | 101 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ |
| 102 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ | 102 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ |
| @@ -132,11 +132,11 @@ static unsigned char page00[256] = { | |||
| 132 | 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* 0xf8-0xff */ | 132 | 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* 0xf8-0xff */ |
| 133 | }; | 133 | }; |
| 134 | 134 | ||
| 135 | static unsigned char *page_uni2charset[256] = { | 135 | static const unsigned char *const page_uni2charset[256] = { |
| 136 | page00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, | 136 | page00, NULL, NULL, NULL, NULL, NULL, NULL, NULL, |
| 137 | }; | 137 | }; |
| 138 | 138 | ||
| 139 | static unsigned char charset2lower[256] = { | 139 | static const unsigned char charset2lower[256] = { |
| 140 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ | 140 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ |
| 141 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ | 141 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ |
| 142 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ | 142 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ |
| @@ -172,7 +172,7 @@ static unsigned char charset2lower[256] = { | |||
| 172 | 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* 0xf8-0xff */ | 172 | 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, /* 0xf8-0xff */ |
| 173 | }; | 173 | }; |
| 174 | 174 | ||
| 175 | static unsigned char charset2upper[256] = { | 175 | static const unsigned char charset2upper[256] = { |
| 176 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ | 176 | 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, /* 0x00-0x07 */ |
| 177 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ | 177 | 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, /* 0x08-0x0f */ |
| 178 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ | 178 | 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, /* 0x10-0x17 */ |
| @@ -210,7 +210,7 @@ static unsigned char charset2upper[256] = { | |||
| 210 | 210 | ||
| 211 | static int uni2char(wchar_t uni, unsigned char *out, int boundlen) | 211 | static int uni2char(wchar_t uni, unsigned char *out, int boundlen) |
| 212 | { | 212 | { |
| 213 | unsigned char *uni2charset; | 213 | const unsigned char *uni2charset; |
| 214 | unsigned char cl = uni & 0x00ff; | 214 | unsigned char cl = uni & 0x00ff; |
| 215 | unsigned char ch = (uni & 0xff00) >> 8; | 215 | unsigned char ch = (uni & 0xff00) >> 8; |
| 216 | 216 | ||
