summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-19 04:55:31 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-19 04:55:31 +0000
commit477aa8698f7963b0984c15016f62f99efe4bb0b5 (patch)
tree238a2903ead490f4427d3dd9266ee662d8281f0a /iconv
parent97d261ad227332e4f74bbcf283bf2654a32cabea (diff)
downloadglibc-477aa8698f7963b0984c15016f62f99efe4bb0b5.tar.gz
glibc-477aa8698f7963b0984c15016f62f99efe4bb0b5.tar.xz
glibc-477aa8698f7963b0984c15016f62f99efe4bb0b5.zip
* iconv/gconv_builtin.c (builtin_map): Change type of size
	information fields to int8_t.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/gconv_builtin.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/iconv/gconv_builtin.c b/iconv/gconv_builtin.c
index bea8328ce8..d8beabd416 100644
--- a/iconv/gconv_builtin.c
+++ b/iconv/gconv_builtin.c
@@ -20,6 +20,7 @@
 
 #include <endian.h>
 #include <limits.h>
+#include <stdint.h>
 #include <string.h>
 
 #include <gconv_int.h>
@@ -27,18 +28,18 @@
 #include <assert.h>
 
 
-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) \