about summary refs log tree commit diff
path: root/iconvdata
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-27 17:54:38 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-27 17:54:38 +0000
commita1620a4c559b148324f98cc959c481ece926f4a5 (patch)
treeb100aa4ae1b1dbd040437ba80d320ac2beaf2cab /iconvdata
parentb91d5eda6e894ca12c4971dbcfb69f02abd42800 (diff)
downloadglibc-a1620a4c559b148324f98cc959c481ece926f4a5.tar.gz
glibc-a1620a4c559b148324f98cc959c481ece926f4a5.tar.xz
glibc-a1620a4c559b148324f98cc959c481ece926f4a5.zip
Update.
2000-11-27  Ulrich Drepper  <drepper@redhat.com>

	* iconv/gconv.h (__gconv_info): Define __data element using __flexarr.
	* misc/sys/cdefs.h: Define __flexarr.
	Proposed by Joseph S. Myers <jsm28@cam.ac.uk>.

	* iconvdata/iso-2022-jp.c: Add prototypes to avoid warnings.
	* iconv/skeleton.c: Likewise.
	* iconvdata/iso8859-1.c (BODY to 8859-1): Add const to cast.
	* iconv/loop.c (get16): Add const to cast.
	(get32): Likewise.
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/iso-2022-jp.c2
-rw-r--r--iconvdata/iso8859-1.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/iconvdata/iso-2022-jp.c b/iconvdata/iso-2022-jp.c
index bb7cc1831e..1d9164d818 100644
--- a/iconvdata/iso-2022-jp.c
+++ b/iconvdata/iso-2022-jp.c
@@ -111,6 +111,7 @@ enum
 };
 
 
+extern int gconv_init (struct __gconv_step *step);
 int
 gconv_init (struct __gconv_step *step)
 {
@@ -180,6 +181,7 @@ gconv_init (struct __gconv_step *step)
 }
 
 
+extern void gconv_end (struct __gconv_step *data);
 void
 gconv_end (struct __gconv_step *data)
 {
diff --git a/iconvdata/iso8859-1.c b/iconvdata/iso8859-1.c
index bedc425ec3..9e5007f77d 100644
--- a/iconvdata/iso8859-1.c
+++ b/iconvdata/iso8859-1.c
@@ -45,7 +45,7 @@
 #define LOOPFCT			TO_LOOP
 #define BODY \
   {									      \
-    uint32_t ch = *((uint32_t *) inptr);				      \
+    uint32_t ch = *((const uint32_t *) inptr);				      \
     if (__builtin_expect (ch, 0) > 0xff)				      \
       {									      \
 	/* We have an illegal character.  */				      \