From 477aa8698f7963b0984c15016f62f99efe4bb0b5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 19 Dec 2005 04:55:31 +0000 Subject: * iconv/gconv_builtin.c (builtin_map): Change type of size information fields to int8_t. --- ChangeLog | 3 +++ iconv/gconv_builtin.c | 13 +++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4916a4e..3c186d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-12-18 Ulrich Drepper + * iconv/gconv_builtin.c (builtin_map): Change type of size + information fields to int8_t. + * libio/iofwide.c (__libio_codecvt): Mark as const. (__libio_translit): Likewise. * libio/libioP.h (__libio_codecvt): Adjust declaraction. diff --git a/iconv/gconv_builtin.c b/iconv/gconv_builtin.c index bea8328..d8beabd 100644 --- a/iconv/gconv_builtin.c +++ b/iconv/gconv_builtin.c @@ -20,6 +20,7 @@ #include #include +#include #include #include @@ -27,18 +28,18 @@ #include -static struct builtin_map +static const struct builtin_map { const char *name; __gconv_fct fct; __gconv_btowc_fct btowc_fct; - int min_needed_from; - int max_needed_from; - int min_needed_to; - int max_needed_to; + int8_t min_needed_from; + int8_t max_needed_from; + int8_t min_needed_to; + int8_t max_needed_to; -} map[] attribute_relro = +} map[] = { #define BUILTIN_TRANSFORMATION(From, To, Cost, Name, Fct, BtowcFct, \ MinF, MaxF, MinT, MaxT) \ -- cgit v1.1