1
1

(str_8bit_encodings[], str_utf8_encodings[]): make const.

Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
Этот коммит содержится в:
Andrew V. Samoilov 2018-01-23 19:47:00 +02:00 коммит произвёл Andrew Borodin
родитель 06eac9f17d
Коммит dfd6d99e1c

Просмотреть файл

@ -47,14 +47,14 @@ GIConv str_cnv_not_convert = INVALID_CONV;
/*** file scope variables ************************************************************************/
/* names, that are used for utf-8 */
static const char *str_utf8_encodings[] = {
static const char *const str_utf8_encodings[] = {
"utf-8",
"utf8",
NULL
};
/* standard 8bit encodings, no wide or multibytes characters */
static const char *str_8bit_encodings[] = {
static const char *const str_8bit_encodings[] = {
"cp-1251",
"cp1251",
"cp-1250",
@ -219,7 +219,7 @@ _str_convert (GIConv coder, const char *string, int size, GString * buffer)
/* --------------------------------------------------------------------------------------------- */
static int
str_test_encoding_class (const char *encoding, const char **table)
str_test_encoding_class (const char *encoding, const char *const *table)
{
int result = 0;