about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-19 02:24:26 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-19 02:24:26 +0000
commit86d131f83358d29e075aed187731785761eb3e97 (patch)
treef8596f50887a36c6e0a1434aaca4bc9aaced091b
parentd7fb2a9242100a6fac58d1241d9215fc4feb2514 (diff)
downloadglibc-86d131f83358d29e075aed187731785761eb3e97.tar.gz
glibc-86d131f83358d29e075aed187731785761eb3e97.tar.xz
glibc-86d131f83358d29e075aed187731785761eb3e97.zip
* libio/iofwide.c (__libio_codecvt): Mark as const.
	(__libio_translit): Likewise.
-rw-r--r--ChangeLog3
-rw-r--r--libio/iofwide.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a793f5c157..36e8a76f2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-18  Ulrich Drepper  <drepper@redhat.com>
 
+	* libio/iofwide.c (__libio_codecvt): Mark as const.
+	(__libio_translit): Likewise.
+
 	* wcsmbs/wcsmbsload.c (to_wc): Mark as const.
 	(to_mb): Likewise.
 
diff --git a/libio/iofwide.c b/libio/iofwide.c
index 7af9a633f8..be3627ca99 100644
--- a/libio/iofwide.c
+++ b/libio/iofwide.c
@@ -68,7 +68,7 @@ static int do_always_noconv (struct _IO_codecvt *codecvt);
 
 
 /* The functions used in `codecvt' for libio are always the same.  */
-struct _IO_codecvt __libio_codecvt =
+const struct _IO_codecvt __libio_codecvt =
 {
   .__codecvt_destr = NULL,		/* Destructor, never used.  */
   .__codecvt_do_out = do_out,
@@ -82,7 +82,7 @@ struct _IO_codecvt __libio_codecvt =
 
 
 #ifdef _LIBC
-struct __gconv_trans_data __libio_translit attribute_hidden =
+const struct __gconv_trans_data __libio_translit attribute_hidden =
 {
   .__trans_fct = __gconv_transliterate
 };